public enum HeadersMode extends Enum<HeadersMode >
| Enum Constant and Description |
|---|
HTTP_20_HEADERS
|
SPDY_HEADERS
|
SPDY_REPLY
|
SPDY_SYN_STREAM
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
failIfHeadersAbsent()
Returns true if it is an error these headers to be the initial headers of a response.
|
boolean |
failIfHeadersPresent()
Returns true if it is an error these headers to be update existing headers of a response.
|
boolean |
failIfStreamAbsent()
Returns true if it is an error these headers to create a new stream.
|
boolean |
failIfStreamPresent()
Returns true if it is an error these headers to update an existing stream.
|
static HeadersMode |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static HeadersMode |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final HeadersModeSPDY_SYN_STREAM
public static final HeadersModeSPDY_REPLY
public static final HeadersModeSPDY_HEADERS
public static final HeadersModeHTTP_20_HEADERS
public static HeadersMode[] values()
for (HeadersMode c : HeadersMode.values()) System.out.println(c);
public static HeadersModevalueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public boolean failIfStreamAbsent()
public boolean failIfStreamPresent()
public boolean failIfHeadersAbsent()
public boolean failIfHeadersPresent()