FileDocCategorySizeDatePackage
ProtocolFinder.javaAPI DocGlassfish v2 API2858Fri May 04 22:37:12 BST 2007com.sun.enterprise.web.portunif

ProtocolFinder

public interface ProtocolFinder
This interface should be used to implement a TCP 'protocol finder'. From the SelectionKey, it is possible to get a reference to the SocketChannel and read bytes from it. From the bytes read, the TCP protocol can be derived and stored inside a ProtocolInfo instance.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
Methods Summary
public voidfind(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
Try to determine the TCP protocol used (http, soap, etc.).

param
selectionKey The SelectionKey from which the SocketChannel can be derived.
return
ProtocolInfo An instance that store information about the protocol, if found.