public class ChannelContext extends Object implements WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener
| Constructor and Description |
|---|
ChannelContext(ConnectionSession connectionSession,
ChannelSettings channelSettings) |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
decodeMimeType(int contentId) |
String |
decodeParam(int paramId) |
int |
encodeMimeType(String mimeType) |
int |
encodeParam(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
|
String |
getContentType()
Gets message's content type from TCP protocol specific representation
|
WSTCPURI |
getTargetWSURI()
Return correspondent WS's URI
|
QName |
getWSServiceName()
Return virtual channel's correspondent service name
|
void |
onRecycled() |
void |
setContentType(String contentTypeS)
Sets message's content type to TCP protocol specific representation
|
void |
setWSServiceName(QName wsServiceName) |
String |
toString() |
public ChannelContext(@NotNull
ConnectionSession connectionSession,
@NotNull
ChannelSettings channelSettings)
@NotNull public ConnectionSession getConnectionSession()
@NotNull public ChannelSettings getChannelSettings()
@Nullable public com.sun.xml.ws.api.pipe.Codec getCodec()
@NotNull public Connection getConnection()
public int getChannelId()
@NotNull public QName getWSServiceName()
public void setWSServiceName(@NotNull
QName wsServiceName)
@Nullable public WSTCPURI getTargetWSURI()
public void setContentType(@NotNull
String contentTypeS)
throws WSTCPException
WSTCPException@NotNull public String getContentType() throws WSTCPException
WSTCPExceptionpublic int encodeMimeType(@NotNull
String mimeType)
throws WSTCPException
WSTCPException@NotNull public String decodeMimeType(int contentId) throws WSTCPException
WSTCPExceptionpublic int encodeParam(@NotNull
String paramStr)
throws WSTCPException
WSTCPException@NotNull public String decodeParam(int paramId) throws WSTCPException
WSTCPExceptionpublic static void configureCodec(@NotNull
ChannelContext channelContext,
@NotNull
com.sun.xml.ws.api.SOAPVersion soapVersion,
@NotNull
com.sun.xml.ws.api.pipe.Codec defaultCodec)
public void onRecycled()
onRecycled in interface WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListenerCopyright © 2005–2018 Oracle Corporation. All rights reserved.