public enum TransportType extends java.lang.Enum<TransportType>
Enum Constant and Description |
---|
EVENT_SOURCE |
HTML_FILE |
WEBSOCKET |
XHR |
XHR_SEND |
XHR_STREAMING |
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
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(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 null@Nullable public 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>