Class ChannelContext

    • 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 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
      • configureCodec

        public static void configureCodec​(@NotNull
                                          ChannelContext channelContext,
                                          @NotNull
                                          SOAPVersion soapVersion,
                                          @NotNull
                                          Codec defaultCodec)
        Configure Codec according to channel settings