public enum TransportType extends 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 | Method and Description |
---|---|
static TransportType |
fromValue(String value) |
HttpMethod |
getHttpMethod() |
boolean |
sendsNoCacheInstruction() |
boolean |
sendsSessionCookie() |
boolean |
supportsCors() |
boolean |
supportsOrigin() |
String |
toString() |
String |
value() |
static TransportType |
valueOf(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
public static TransportType[] values()
for (TransportType c : TransportType.values()) System.out.println(c);
public static TransportType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static TransportType fromValue(String value)
public String value()
public HttpMethod getHttpMethod()
public boolean sendsNoCacheInstruction()
public boolean sendsSessionCookie()
public boolean supportsCors()
public boolean supportsOrigin()
public String toString()
toString
in class Enum<TransportType>