Class DoipConnectionImpl

java.lang.Object
net.dona.doip.client.transport.DoipConnectionImpl
All Implemented Interfaces:
AutoCloseable, DoipConnection

public class DoipConnectionImpl extends Object implements DoipConnection
An implementation of DoipConnection. Generally, instances of DoipConnection should be obtained using the methods of TransportDoipClient or DoipConnectionPool. The user can send requests using the sendCompactRequest(DoipRequestHeaders), sendRequest(DoipRequestHeaders, InDoipMessage), and sendRequestToExchange(DoipRequestHeaders) methods. The user should call close() when done (except when obtained from a pool, in which case DoipConnectionPool.release(DoipConnection) should be called instead).
  • Constructor Details

    • DoipConnectionImpl

      public DoipConnectionImpl(Socket socket)
      Establishes a DoipConnection using the specified Socket. Generally, instances of DoipConnection should be obtained using the methods of TransportDoipClient.
  • Method Details