com.sun.xml.ws.transport.tcp.server.tomcat.grizzly10
Class HttpRedirectorProtocolFinder
java.lang.Object
com.sun.xml.ws.transport.tcp.server.tomcat.grizzly10.HttpRedirectorProtocolFinder
- All Implemented Interfaces:
- com.sun.enterprise.web.portunif.ProtocolFinder
public class HttpRedirectorProtocolFinder
- extends 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.
- Author:
- Jeanfrancois Arcand
|
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 |
HttpRedirectorProtocolFinder
public HttpRedirectorProtocolFinder()
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.
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.