Top Fields Constructors Methods
org.eclipse.jetty.http

public final Enum HttpHeaderValue

extends Enum<HttpHeaderValue>
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.EnumSet, java.util.function.Function, org.eclipse.jetty.util.BufferUtil, .Index, .StringUtil

Field Summary

Modifier and TypeField and Description
private static final EnumSet<HttpHeader>
private final ByteBuffer
private final String
public static final HttpHeaderValue
public static final Index<HttpHeaderValue>
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue
public static final HttpHeaderValue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
public static boolean
public boolean
public static boolean

Returns:

true if parsing completed normally and all found index items returned true from the found function.
parseCsvIndex
(String
A string list of index keys, separated with commas and possible white space
value
,
Function<HttpHeaderValue, Boolean>
The function to call for all found index entries. If the function returns false parsing is halted.
found
)

Parse an unquoted comma separated list of index keys.

public static boolean

Returns:

true if parsing completed normally and all found index items returned true from the found function.
parseCsvIndex
(String
A string list of index keys, separated with commas and possible white space
value
,
Function<HttpHeaderValue, Boolean>
The function to call for all found index entries. If the function returns false parsing is halted.
found
,
Function<String, Boolean>
The function to call for foound unknown entries. If the function returns false parsing is halted.
unknown
)

Parse an unquoted comma separated list of index keys.

public ByteBuffer
public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static HttpHeaderValue
public static HttpHeaderValue[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

__knownback to summary
private static final EnumSet<HttpHeader> __known
_bufferback to summary
private final ByteBuffer _buffer
_stringback to summary
private final String _string
BYTESback to summary
public static final HttpHeaderValue BYTES
CACHEback to summary
public static final Index<HttpHeaderValue> CACHE
CHUNKEDback to summary
public static final HttpHeaderValue CHUNKED
CLOSEback to summary
public static final HttpHeaderValue CLOSE
CONTINUEback to summary
public static final HttpHeaderValue CONTINUE
GZIPback to summary
public static final HttpHeaderValue GZIP
IDENTITYback to summary
public static final HttpHeaderValue IDENTITY
KEEP_ALIVEback to summary
public static final HttpHeaderValue KEEP_ALIVE
NO_CACHEback to summary
public static final HttpHeaderValue NO_CACHE
PROCESSINGback to summary
public static final HttpHeaderValue PROCESSING
TEback to summary
public static final HttpHeaderValue TE
UPGRADEback to summary
public static final HttpHeaderValue UPGRADE

Constructor Detail

HttpHeaderValueback to summary
private HttpHeaderValue(String s)

Method Detail

asStringback to summary
public String asString()
hasKnownValuesback to summary
public static boolean hasKnownValues(HttpHeader header)
isback to summary
public boolean is(String s)
parseCsvIndexback to summary
public static boolean parseCsvIndex(String value, Function<HttpHeaderValue, Boolean> found)

Parse an unquoted comma separated list of index keys.

Parameters
value:String

A string list of index keys, separated with commas and possible white space

found:Function<HttpHeaderValue, Boolean>

The function to call for all found index entries. If the function returns false parsing is halted.

Returns:boolean

true if parsing completed normally and all found index items returned true from the found function.

parseCsvIndexback to summary
public static boolean parseCsvIndex(String value, Function<HttpHeaderValue, Boolean> found, Function<String, Boolean> unknown)

Parse an unquoted comma separated list of index keys.

Parameters
value:String

A string list of index keys, separated with commas and possible white space

found:Function<HttpHeaderValue, Boolean>

The function to call for all found index entries. If the function returns false parsing is halted.

unknown:Function<String, Boolean>

The function to call for foound unknown entries. If the function returns false parsing is halted.

Returns:boolean

true if parsing completed normally and all found index items returned true from the found function.

toBufferback to summary
public ByteBuffer toBuffer()
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static HttpHeaderValue valueOf(String name)
valuesback to summary
public static HttpHeaderValue[] values()