ProtocolFinder implementation that parse the available SocketChannel bytes looking for the 'http' bytes. An
http request will always has the form of:
METHOD URI PROTOCOL/VERSION
example: GET / HTTP/1.1
The algorithm will try to find the protocol token.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private static final char[] | |
| private final Attribute |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ProtocolFinder. | find(final PUContext puContext, final FilterChainContext ctx)
Implements org. Method is called from |
| maxRequestLineSize | back to summary |
|---|---|
| private final int maxRequestLineSize | |
| METHOD_FIRST_LETTERS | back to summary |
|---|---|
| private static final char[] METHOD_FIRST_LETTERS | |
| parsingStateAttribute | back to summary |
|---|---|
| private final Attribute<HttpProtocolFinder. | |
| HttpProtocolFinder | back to summary |
|---|---|
| public HttpProtocolFinder() | |
| HttpProtocolFinder | back to summary |
|---|---|
| public HttpProtocolFinder(int maxRequestLineSize) | |
| find | back to summary |
|---|---|
| public ProtocolFinder. Implements org. Doc from org. Method is called from
| |
| Access | Constructor and Description |
|---|---|
| public |
| position | back to summary |
|---|---|
| pack-priv int position | |
| state | back to summary |
|---|---|
| pack-priv int state | |
| ParsingState | back to summary |
|---|---|
| public ParsingState(int position, int state) | |