public class HttpProtocolFinder extends Object implements ProtocolFinder
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.ProtocolFinder.Result
Constructor and Description |
---|
HttpProtocolFinder() |
HttpProtocolFinder(int maxRequestLineSize) |
Modifier and Type | Method and Description |
---|---|
ProtocolFinder.Result |
find(PUContext puContext,
FilterChainContext ctx)
Method is called from
PUFilter to check whether the incoming
bytes belong to the specific protocol. |
public HttpProtocolFinder()
public HttpProtocolFinder(int maxRequestLineSize)
public ProtocolFinder.Result find(PUContext puContext, FilterChainContext ctx)
ProtocolFinder
PUFilter
to check whether the incoming
bytes belong to the specific protocol.find
in interface ProtocolFinder
puContext
- PUContext
ctx
- FilterChainContext
ProtocolFinder.Result
Copyright © 2015 Oracle Corporation. All rights reserved.