Class HttpProtocolFinder

java.lang.Object
org.glassfish.grizzly.portunif.finders.HttpProtocolFinder
All Implemented Interfaces:
ProtocolFinder

public class HttpProtocolFinder extends Object implements 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