com.sun.enterprise.web.portunif
Class HttpProtocolFinder

java.lang.Object
  extended by com.sun.enterprise.web.portunif.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. This object shoudn't be called by several threads simultaneously.

Author:
Jeanfrancois Arcand

Constructor Summary
HttpProtocolFinder()
           
 
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
 

Constructor Detail

HttpProtocolFinder

public HttpProtocolFinder()
Method Detail

find

public void find(ProtocolInfo protocolInfo)
Try to find if the current connection is using the HTTP protocol.

Specified by:
find in interface ProtocolFinder
Parameters:
ProtocolInfo - The ProtocolInfo that contains the information about the current protocol.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.