com.sun.xml.ws.transport.tcp.grizzly
Class WSTCPProtocolFinder

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.grizzly.WSTCPProtocolFinder
All Implemented Interfaces:
com.sun.enterprise.web.portunif.ProtocolFinder

public final class WSTCPProtocolFinder
extends java.lang.Object
implements com.sun.enterprise.web.portunif.ProtocolFinder

A ProtocolFinder implementation that parse the available SocketChannel bytes looking for the PROTOCOL_ID bytes. An SOAP/TCP request will always start with: vnd.sun.ws.tcp This object shoudn't be called by several threads simultaneously.


Constructor Summary
WSTCPProtocolFinder()
           
 
Method Summary
 void find(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
          Try to find the protocol from the SocketChannel bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTCPProtocolFinder

public WSTCPProtocolFinder()
Method Detail

find

public void find(@NotNull
                 com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
          throws java.io.IOException
Try to find the protocol from the SocketChannel bytes.

Specified by:
find in interface com.sun.enterprise.web.portunif.ProtocolFinder
Parameters:
selectionKey - The key from which the SocketChannel can be retrieved.
Throws:
java.io.IOException