Enum HttpHeaderParser.HeaderParsePosition
java.lang.Object
java.lang.Enum<HttpHeaderParser.HeaderParsePosition>
org.apache.tomcat.util.http.parser.HttpHeaderParser.HeaderParsePosition
- All Implemented Interfaces:
- Serializable,- Comparable<HttpHeaderParser.HeaderParsePosition>,- java.lang.constant.Constable
- Enclosing class:
- HttpHeaderParser
public static enum HttpHeaderParser.HeaderParsePosition
extends Enum<HttpHeaderParser.HeaderParsePosition>
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionBefore reading a new line of a header.Reading a header name.Reading all bytes until the next CRLF.Start of a new header.Reading the header value.Skipping whitespace before text of header value starts, either on the first line of header value (just after ':') or on subsequent lines when it is known that subsequent line starts with SP or HT.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static HttpHeaderParser.HeaderParsePosition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
HEADER_STARTStart of a new header. A CRLF here means that there are no more headers. Any other character starts a header name.
- 
HEADER_NAMEReading a header name. All characters of header are HTTP_TOKEN_CHAR. Header name is followed by ':'. No whitespace is allowed.
 Any non-HTTP_TOKEN_CHAR (this includes any whitespace) encountered before ':' will result in the whole line being ignored.
- 
HEADER_VALUE_STARTSkipping whitespace before text of header value starts, either on the first line of header value (just after ':') or on subsequent lines when it is known that subsequent line starts with SP or HT.
- 
HEADER_VALUEReading the header value. We are inside the value. Either on the first line or on any subsequent line. We come into this state from HEADER_VALUE_START after the first non-SP/non-HT byte is encountered on the line.
- 
HEADER_MULTI_LINEBefore reading a new line of a header. Once the next byte is peeked, the state changes without advancing our position. The state becomes either HEADER_VALUE_START (if that first byte is SP or HT), or HEADER_START (otherwise).
- 
HEADER_SKIPLINEReading all bytes until the next CRLF. The line is being ignored.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-