public enum TransportType extends java.lang.Enum<TransportType>
JSONP support will be removed as of Spring Framework 5.1, use others transports instead.
Enum Constant and Description |
---|
EVENT_SOURCE |
HTML_FILE |
JSONP
Deprecated.
|
JSONP_SEND
Deprecated.
|
WEBSOCKET |
XHR |
XHR_SEND |
XHR_STREAMING |
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
headerHints |
private HttpMethod |
httpMethod |
private static java.util.Map<java.lang.String,TransportType> |
TRANSPORT_TYPES |
private java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static TransportType |
fromValue(java.lang.String value) |
HttpMethod |
getHttpMethod() |
boolean |
sendsNoCacheInstruction() |
boolean |
sendsSessionCookie() |
boolean |
supportsCors() |
boolean |
supportsOrigin() |
java.lang.String |
toString() |
java.lang.String |
value() |
static TransportType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportType WEBSOCKET
public static final TransportType XHR
public static final TransportType XHR_SEND
@Deprecated public static final TransportType JSONP
@Deprecated public static final TransportType JSONP_SEND
public static final TransportType XHR_STREAMING
public static final TransportType EVENT_SOURCE
public static final TransportType HTML_FILE
private static final java.util.Map<java.lang.String,TransportType> TRANSPORT_TYPES
private final java.lang.String value
private final HttpMethod httpMethod
private final java.util.List<java.lang.String> headerHints
public static TransportType[] values()
for (TransportType c : TransportType.values()) System.out.println(c);
public static TransportType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static TransportType fromValue(java.lang.String value)
public java.lang.String value()
public HttpMethod getHttpMethod()
public boolean sendsNoCacheInstruction()
public boolean sendsSessionCookie()
public boolean supportsCors()
public boolean supportsOrigin()
public java.lang.String toString()
toString
in class java.lang.Enum<TransportType>