Class HttpProtocolFinder
java.lang.Object
org.glassfish.grizzly.portunif.finders.HttpProtocolFinder
- All Implemented Interfaces:
ProtocolFinder
A
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.- Author:
- Jeanfrancois Arcand, Alexey Stashok
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.portunif.ProtocolFinder
ProtocolFinder.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(PUContext puContext, FilterChainContext ctx) Method is called fromPUFilterto check whether the incoming bytes belong to the specific protocol.
-
Constructor Details
-
HttpProtocolFinder
public HttpProtocolFinder() -
HttpProtocolFinder
public HttpProtocolFinder(int maxRequestLineSize)
-
-
Method Details
-
find
Description copied from interface:ProtocolFinderMethod is called fromPUFilterto check whether the incoming bytes belong to the specific protocol.- Specified by:
findin interfaceProtocolFinder- Parameters:
puContext-PUContextctx-FilterChainContext- Returns:
ProtocolFinder.Result
-