com.sun.xml.ws.transport.tcp.util
Class ChannelContext

java.lang.Object
  extended by com.sun.xml.ws.transport.tcp.util.ChannelContext
All Implemented Interfaces:
WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener
Direct Known Subclasses:
ChannelZeroContext

public class ChannelContext
extends java.lang.Object
implements WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener


Constructor Summary
ChannelContext(ConnectionSession connectionSession, ChannelSettings channelSettings)
           
 
Method Summary
static void configureCodec(ChannelContext channelContext, com.sun.xml.ws.api.SOAPVersion soapVersion, com.sun.xml.ws.api.pipe.Codec defaultCodec)
          Configure Codec according to channel settings
 java.lang.String decodeMimeType(int contentId)
           
 java.lang.String decodeParam(int paramId)
           
 int encodeMimeType(java.lang.String mimeType)
           
 int encodeParam(java.lang.String paramStr)
           
 int getChannelId()
          Return channel id
 ChannelSettings getChannelSettings()
          Return channel settings, which were aggreed during handshake phase
 com.sun.xml.ws.api.pipe.Codec getCodec()
          Return message Codec, which is used for encoding/decoding messages on this virtual channel
 Connection getConnection()
          Return TCP connection object, where this virtual channel is acting on
 ConnectionSession getConnectionSession()
          Return TCP session object where which this virual channel is open on
 java.lang.String getContentType()
          Gets message's content type from TCP protocol specific representation
 WSTCPURI getTargetWSURI()
          Return correspondent WS's URI
 javax.xml.namespace.QName getWSServiceName()
          Return virtual channel's correspondent service name
 void onRecycled()
           
 void setContentType(java.lang.String contentTypeS)
          Sets message's content type to TCP protocol specific representation
 void setWSServiceName(javax.xml.namespace.QName wsServiceName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelContext

public ChannelContext(@NotNull
                      ConnectionSession connectionSession,
                      @NotNull
                      ChannelSettings channelSettings)
Method Detail

getConnectionSession

@NotNull
public ConnectionSession getConnectionSession()
Return TCP session object where which this virual channel is open on


getChannelSettings

@NotNull
public ChannelSettings getChannelSettings()
Return channel settings, which were aggreed during handshake phase


getCodec

@Nullable
public com.sun.xml.ws.api.pipe.Codec getCodec()
Return message Codec, which is used for encoding/decoding messages on this virtual channel


getConnection

@NotNull
public Connection getConnection()
Return TCP connection object, where this virtual channel is acting on


getChannelId

public int getChannelId()
Return channel id


getWSServiceName

@NotNull
public javax.xml.namespace.QName getWSServiceName()
Return virtual channel's correspondent service name


setWSServiceName

public void setWSServiceName(@NotNull
                             javax.xml.namespace.QName wsServiceName)

getTargetWSURI

@Nullable
public WSTCPURI getTargetWSURI()
Return correspondent WS's URI


setContentType

public void setContentType(@NotNull
                           java.lang.String contentTypeS)
                    throws WSTCPException
Sets message's content type to TCP protocol specific representation

Throws:
WSTCPException

getContentType

@NotNull
public java.lang.String getContentType()
                                throws WSTCPException
Gets message's content type from TCP protocol specific representation

Throws:
WSTCPException

encodeMimeType

public int encodeMimeType(@NotNull
                          java.lang.String mimeType)
                   throws WSTCPException
Throws:
WSTCPException

decodeMimeType

@NotNull
public java.lang.String decodeMimeType(int contentId)
                                throws WSTCPException
Throws:
WSTCPException

encodeParam

public int encodeParam(@NotNull
                       java.lang.String paramStr)
                throws WSTCPException
Throws:
WSTCPException

decodeParam

@NotNull
public java.lang.String decodeParam(int paramId)
                             throws WSTCPException
Throws:
WSTCPException

configureCodec

public static void configureCodec(@NotNull
                                  ChannelContext channelContext,
                                  @NotNull
                                  com.sun.xml.ws.api.SOAPVersion soapVersion,
                                  @NotNull
                                  com.sun.xml.ws.api.pipe.Codec defaultCodec)
Configure Codec according to channel settings


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

onRecycled

public void onRecycled()
Specified by:
onRecycled in interface WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener