public enum TransportType extends Enum<TransportType>
Enum Constant and Description |
---|
EVENT_SOURCE |
HTML_FILE |
JSONP |
JSONP_SEND |
WEBSOCKET |
XHR |
XHR_SEND |
XHR_STREAMING |
Modifier and Type | Method and Description |
---|---|
static TransportType |
fromValue(String value) |
HttpMethod |
getHttpMethod()
The HTTP method for this transport.
|
boolean |
sendsNoCacheInstruction() |
boolean |
sendsSessionCookie() |
boolean |
supportsCors() |
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
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
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 nullpublic String value()
public HttpMethod getHttpMethod()
public boolean sendsNoCacheInstruction()
public boolean supportsCors()
public boolean sendsSessionCookie()
public static TransportType fromValue(String value)
public String toString()
toString
in class Enum<TransportType>