As the machine changes state this class is updated rather than allocating a new one each time. fields are not private to allow for efficient putfield / getfield access Fields can mean different things depending on the current state. This means that names may not always reflect complete functionality. This class is re-used for requests on the same connection.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| pack-priv final StringBuilder | canonicalPath
We need to keep track of the canonical path |
| pack-priv HttpString | current
If this state is a prefix or terminal match state this is set to the string that is a candidate to be matched |
| pack-priv byte[] | currentBytes
The bytes version of |
| pack-priv final StringBuilder | |
| public static final int | |
| public static final int | |
| pack-priv final CacheMap | headerValuesCache
In general browsers will often send the same header with every request. |
| pack-priv byte | leftOver
This has different meanings depending on the current state. |
| pack-priv int | |
| pack-priv HttpString | nextHeader
This is used to store the next header value when parsing header key / value pairs, |
| pack-priv String | |
| public static final int | |
| pack-priv int | parseState
The current state in the tokenizer state machine. |
| public static final int | |
| public static final int | |
| pack-priv int | pos
If this state is a prefix match state then this holds the current position in the string. |
| public static final int | |
| pack-priv int | state
The actual state of request parsing |
| pack-priv final StringBuilder | stringBuilder
If this is in |
| pack-priv boolean | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final void | |
| public void |
| AFTER_VERSION | back to summary |
|---|---|
| public static final int AFTER_VERSION | |
| canonicalPath | back to summary |
|---|---|
| pack-priv final StringBuilder canonicalPath We need to keep track of the canonical path | |
| current | back to summary |
|---|---|
| pack-priv HttpString current If this state is a prefix or terminal match state this is set to the string that is a candidate to be matched | |
| currentBytes | back to summary |
|---|---|
| pack-priv byte[] currentBytes The bytes version of | |
| decodeBuffer | back to summary |
|---|---|
| pack-priv final StringBuilder decodeBuffer | |
| HEADER | back to summary |
|---|---|
| public static final int HEADER | |
| HEADER_VALUE | back to summary |
|---|---|
| public static final int HEADER_VALUE | |
| headerValuesCache | back to summary |
|---|---|
| pack-priv final CacheMap<HttpString, String> headerValuesCache In general browsers will often send the same header with every request. This cache allows us to re-use the resulting strings. | |
| leftOver | back to summary |
|---|---|
| pack-priv byte leftOver This has different meanings depending on the current state.
In state | |
| mapCount | back to summary |
|---|---|
| pack-priv int mapCount | |
| nextHeader | back to summary |
|---|---|
| pack-priv HttpString nextHeader This is used to store the next header value when parsing header key / value pairs, | |
| nextQueryParam | back to summary |
|---|---|
| pack-priv String nextQueryParam | |
| PARSE_COMPLETE | back to summary |
|---|---|
| public static final int PARSE_COMPLETE | |
| parseState | back to summary |
|---|---|
| pack-priv int parseState The current state in the tokenizer state machine. | |
| PATH | back to summary |
|---|---|
| public static final int PATH | |
| PATH_PARAMETERS | back to summary |
|---|---|
| public static final int PATH_PARAMETERS | |
| pos | back to summary |
|---|---|
| pack-priv int pos If this state is a prefix match state then this holds the current position in the string. | |
| QUERY_PARAMETERS | back to summary |
|---|---|
| public static final int QUERY_PARAMETERS | |
| state | back to summary |
|---|---|
| pack-priv int state The actual state of request parsing | |
| stringBuilder | back to summary |
|---|---|
| pack-priv final StringBuilder stringBuilder If this is in | |
| urlDecodeRequired | back to summary |
|---|---|
| pack-priv boolean urlDecodeRequired | |
| VERB | back to summary |
|---|---|
| public static final int VERB | |
| VERSION | back to summary |
|---|---|
| public static final int VERSION | |
| ParseState | back to summary |
|---|---|
| pack-priv ParseState(int cacheSize) | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() | |
| parseComplete | back to summary |
|---|---|
| public final void parseComplete() | |
| reset | back to summary |
|---|---|
| public void reset() | |