public enum TransportType extends java.lang.Enum<TransportType>
Enum Constant and Description |
---|
EVENT_SOURCE |
HTML_FILE |
JSONP |
JSONP_SEND |
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> |
transportTypes |
private java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static TransportType |
fromValue(java.lang.String value) |
HttpMethod |
getHttpMethod()
The HTTP method for this transport.
|
boolean |
sendsNoCacheInstruction() |
boolean |
setsJsessionId() |
boolean |
supportsCors() |
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
public static final TransportType JSONP
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 final java.lang.String value
private final HttpMethod httpMethod
private final java.util.List<java.lang.String> headerHints
private static final java.util.Map<java.lang.String,TransportType> transportTypes
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 java.lang.String value()
public HttpMethod getHttpMethod()
public boolean sendsNoCacheInstruction()
public boolean supportsCors()
public boolean setsJsessionId()
public static TransportType fromValue(java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Enum<TransportType>