Class WSTCPProtocolFinder
java.lang.Object
com.sun.xml.ws.transport.tcp.grizzly.WSTCPProtocolFinder
- All Implemented Interfaces:
org.glassfish.grizzly.portunif.ProtocolFinder
public final class WSTCPProtocolFinder
extends Object
implements org.glassfish.grizzly.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.- Author:
- Jeanfrancois Arcand, Alexey Stashok
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.portunif.ProtocolFinder
org.glassfish.grizzly.portunif.ProtocolFinder.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.grizzly.portunif.ProtocolFinder.Resultfind(org.glassfish.grizzly.portunif.PUContext puContext, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Try to find the protocol from theSocketChannelbytes.
-
Constructor Details
-
WSTCPProtocolFinder
public WSTCPProtocolFinder()
-
-
Method Details
-
find
public org.glassfish.grizzly.portunif.ProtocolFinder.Result find(org.glassfish.grizzly.portunif.PUContext puContext, org.glassfish.grizzly.filterchain.FilterChainContext ctx) Try to find the protocol from theSocketChannelbytes.- Specified by:
findin interfaceorg.glassfish.grizzly.portunif.ProtocolFinder- Parameters:
puContext-ctx- filter chain context- Returns:
- ProtocolInfo The ProtocolInfo that contains the information about the current protocol.
-