com.sun.xml.ws.transport.tcp.server.tomcat.grizzly10
Class HttpRedirectorProtocolFinder

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.server.tomcat.grizzly10.HttpRedirectorProtocolFinder
All Implemented Interfaces:
com.sun.enterprise.web.portunif.ProtocolFinder

public class HttpRedirectorProtocolFinder
extends java.lang.Object
implements com.sun.enterprise.web.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. This object shoudn't be called by several threads simultaneously.


Constructor Summary
HttpRedirectorProtocolFinder()
           
 
Method Summary
 void find(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
          Try to find if the current connection is using the HTTP protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRedirectorProtocolFinder

public HttpRedirectorProtocolFinder()
Method Detail

find

public void find(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
Try to find if the current connection is using the HTTP protocol.

Specified by:
find in interface com.sun.enterprise.web.portunif.ProtocolFinder
Parameters:
ProtocolInfo - The ProtocolInfo that contains the information about the current protocol.