Enum HeadersMode
- java.lang.Object
-
- java.lang.Enum<HeadersMode>
-
- com.squareup.okhttp.internal.framed.HeadersMode
-
- All Implemented Interfaces:
Serializable,Comparable<HeadersMode>
public enum HeadersMode extends Enum<HeadersMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HTTP_20_HEADERSSPDY_HEADERSSPDY_REPLYSPDY_SYN_STREAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfailIfHeadersAbsent()Returns true if it is an error these headers to be the initial headers of a response.booleanfailIfHeadersPresent()Returns true if it is an error these headers to be update existing headers of a response.booleanfailIfStreamAbsent()Returns true if it is an error these headers to create a new stream.booleanfailIfStreamPresent()Returns true if it is an error these headers to update an existing stream.static HeadersModevalueOf(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.
-
-
-
Enum Constant Detail
-
SPDY_SYN_STREAM
public static final HeadersMode SPDY_SYN_STREAM
-
SPDY_REPLY
public static final HeadersMode SPDY_REPLY
-
SPDY_HEADERS
public static final HeadersMode SPDY_HEADERS
-
HTTP_20_HEADERS
public static final HeadersMode HTTP_20_HEADERS
-
-
Method Detail
-
values
public static HeadersMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HeadersMode c : HeadersMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeadersMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
failIfStreamAbsent
public boolean failIfStreamAbsent()
Returns true if it is an error these headers to create a new stream.
-
failIfStreamPresent
public boolean failIfStreamPresent()
Returns true if it is an error these headers to update an existing stream.
-
failIfHeadersAbsent
public boolean failIfHeadersAbsent()
Returns true if it is an error these headers to be the initial headers of a response.
-
failIfHeadersPresent
public boolean failIfHeadersPresent()
Returns true if it is an error these headers to be update existing headers of a response.
-
-