Class HttpProtocolFinder

  • All Implemented Interfaces:
    org.glassfish.grizzly.portunif.ProtocolFinder

    public class HttpProtocolFinder
    extends Object
    implements org.glassfish.grizzly.portunif.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
    • Constructor Detail

      • HttpProtocolFinder

        public HttpProtocolFinder()
      • HttpProtocolFinder

        public HttpProtocolFinder​(int maxRequestLineSize)
    • Method Detail

      • find

        public org.glassfish.grizzly.portunif.ProtocolFinder.Result find​(org.glassfish.grizzly.portunif.PUContext puContext,
                                                                         org.glassfish.grizzly.filterchain.FilterChainContext ctx)
        Specified by:
        find in interface org.glassfish.grizzly.portunif.ProtocolFinder