Class ChannelContext
- 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
Constructors Constructor Description ChannelContext(ConnectionSession connectionSession, ChannelSettings channelSettings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidconfigureCodec(ChannelContext channelContext, SOAPVersion soapVersion, Codec defaultCodec)Configure Codec according to channel settingsStringdecodeMimeType(int contentId)StringdecodeParam(int paramId)intencodeMimeType(String mimeType)intencodeParam(String paramStr)intgetChannelId()Return channel idChannelSettingsgetChannelSettings()Return channel settings, which were aggreed during handshake phaseCodecgetCodec()Return message Codec, which is used for encoding/decoding messages on this virtual channelConnectiongetConnection()Return TCP connection object, where this virtual channel is acting onConnectionSessiongetConnectionSession()Return TCP session object where which this virual channel is open onStringgetContentType()Gets message's content type from TCP protocol specific representationWSTCPURIgetTargetWSURI()Return correspondent WS's URIQNamegetWSServiceName()Return virtual channel's correspondent service namevoidonRecycled()voidsetContentType(String contentTypeS)Sets message's content type to TCP protocol specific representationvoidsetWSServiceName(QName wsServiceName)StringtoString()
-
-
-
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 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 WSTCPExceptionSets 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 SOAPVersion soapVersion, @NotNull Codec defaultCodec)Configure Codec according to channel settings
-
onRecycled
public void onRecycled()
- Specified by:
onRecycledin interfaceWSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener
-
-