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 name)
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 HeadersMode SPDY_SYN_STREAM
public static final HeadersMode SPDY_REPLY
public static final HeadersMode SPDY_HEADERS
public static final HeadersMode HTTP_20_HEADERS
public static HeadersMode[] values()
for (HeadersMode c : HeadersMode.values()) System.out.println(c);
public static HeadersMode 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 boolean failIfStreamAbsent()
public boolean failIfStreamPresent()
public boolean failIfHeadersAbsent()
public boolean failIfHeadersPresent()
Copyright © 2016. All rights reserved.