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

public class ChannelContext extends Object implements WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener
  • Constructor Details

  • Method Details

    • 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 QName getWSServiceName()
      Return virtual channel's correspondent service name
    • setWSServiceName

      public void setWSServiceName(@NotNull QName wsServiceName)
    • getTargetWSURI

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

      public void setContentType(@NotNull String contentTypeS) throws WSTCPException
      Sets message's content type to TCP protocol specific representation
      Throws:
      WSTCPException
    • getContentType

      @NotNull public String getContentType() throws WSTCPException
      Gets message's content type from TCP protocol specific representation
      Throws:
      WSTCPException
    • encodeMimeType

      public int encodeMimeType(@NotNull String mimeType) throws WSTCPException
      Throws:
      WSTCPException
    • decodeMimeType

      @NotNull public String decodeMimeType(int contentId) throws WSTCPException
      Throws:
      WSTCPException
    • encodeParam

      public int encodeParam(@NotNull String paramStr) throws WSTCPException
      Throws:
      WSTCPException
    • decodeParam

      @NotNull public 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 String toString()
      Overrides:
      toString in class Object
    • onRecycled

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