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 Summary
ConstructorsConstructorDescriptionChannelContext(ConnectionSession connectionSession, ChannelSettings channelSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureCodec(ChannelContext channelContext, com.sun.xml.ws.api.SOAPVersion soapVersion, com.sun.xml.ws.api.pipe.Codec defaultCodec) Configure Codec according to channel settingsdecodeMimeType(int contentId) decodeParam(int paramId) intencodeMimeType(String mimeType) intencodeParam(String paramStr) intReturn channel idReturn channel settings, which were aggreed during handshake phasecom.sun.xml.ws.api.pipe.CodecgetCodec()Return message Codec, which is used for encoding/decoding messages on this virtual channelReturn TCP connection object, where this virtual channel is acting onReturn TCP session object where which this virual channel is open onGets message's content type from TCP protocol specific representationReturn correspondent WS's URIReturn virtual channel's correspondent service namevoidvoidsetContentType(String contentTypeS) Sets message's content type to TCP protocol specific representationvoidsetWSServiceName(QName wsServiceName) toString()
-
Constructor Details
-
ChannelContext
public ChannelContext(@NotNull ConnectionSession connectionSession, @NotNull ChannelSettings channelSettings)
-
-
Method Details
-
getConnectionSession
Return TCP session object where which this virual channel is open on -
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
Return TCP connection object, where this virtual channel is acting on -
getChannelId
public int getChannelId()Return channel id -
getWSServiceName
Return virtual channel's correspondent service name -
setWSServiceName
-
getTargetWSURI
Return correspondent WS's URI -
setContentType
Sets message's content type to TCP protocol specific representation- Throws:
WSTCPException
-
getContentType
Gets message's content type from TCP protocol specific representation- Throws:
WSTCPException
-
encodeMimeType
- Throws:
WSTCPException
-
decodeMimeType
- Throws:
WSTCPException
-
encodeParam
- Throws:
WSTCPException
-
decodeParam
- 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
-
onRecycled
public void onRecycled()- Specified by:
onRecycledin interfaceWSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener
-