Class TCPClientTransport

All Implemented Interfaces:
DistributedPropertySet, PropertySet

public class TCPClientTransport extends BaseDistributedPropertySet
Author:
Alexey Stashok
  • Constructor Details

    • TCPClientTransport

      public TCPClientTransport()
    • TCPClientTransport

      public TCPClientTransport(@NotNull ChannelContext channelContext)
  • Method Details

    • setup

      public void setup(@Nullable ChannelContext channelContext)
    • getStatus

      public int getStatus()
    • setStatus

      public void setStatus(int status)
    • openOutputStream

      @NotNull public OutputStream openOutputStream() throws IOException, WSTCPException
      Throws:
      IOException
      WSTCPException
    • openInputStream

      @NotNull public InputStream openInputStream() throws IOException, WSTCPException
      Throws:
      IOException
      WSTCPException
    • send

      public void send() throws IOException
      Throws:
      IOException
    • close

      public void close()
    • setContentType

      public void setContentType(@NotNull String contentType)
    • getContentType

      @Nullable public String getContentType()
    • getError

      @Nullable public WSTCPError getError()
    • getConnectionContext

      public ChannelContext getConnectionContext()
    • getPropertyMap

      protected BasePropertySet.PropertyMap getPropertyMap()
      Description copied from class: BasePropertySet
      Map representing the Fields and Methods annotated with PropertySet.Property. Model of PropertySet class.

      At the end of the derivation chain this method just needs to be implemented as:

       private static final PropertyMap model;
       static {
         model = parse(MyDerivedClass.class);
       }
       protected PropertyMap getPropertyMap() {
         return model;
       }
       
      or if the implementation is in different Java module.
       private static final PropertyMap model;
       static {
         model = parse(MyDerivedClass.class, MethodHandles.lookup());
       }
       protected PropertyMap getPropertyMap() {
         return model;
       }
       
      Specified by:
      getPropertyMap in class BasePropertySet
      Returns:
      the map of strongly-typed known properties keyed by property names
    • getSOAPMessage

      public SOAPMessage getSOAPMessage() throws SOAPException
      Throws:
      SOAPException
    • setSOAPMessage

      public void setSOAPMessage(SOAPMessage soap)