org.mortbay.jetty.grizzly
Class JettyProtocolFinder
java.lang.Object
org.mortbay.jetty.grizzly.JettyProtocolFinder
public class JettyProtocolFinder
- extends Object
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. Once found, the request
will be redirected from Grizzly embedded in GlassFish to Jetty.
- Author:
- Jeanfrancois Arcand
Method Summary |
void |
find(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 |
JettyProtocolFinder
public JettyProtocolFinder()
find
public void find(ProtocolInfo protocolInfo)
- Try to find if the current connection is using the HTTP protocol.
- Parameters:
ProtocolInfo
- The ProtocolInfo that contains the information
about the current protocol.
Copyright © 2007 Mort Bay Consulting. All Rights Reserved.