Class HttpClientTransportOverUnixSockets

All Implemented Interfaces:
HttpClientTransport, ClientConnectionFactory, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

@Deprecated(forRemoval=true) public class HttpClientTransportOverUnixSockets extends AbstractConnectorHttpClientTransport
Deprecated, for removal: This API element is subject to removal in a future version.
use any HttpClientTransport with ClientConnector.forUnixDomain(Path) instead (requires Java 16 or later)
  • Constructor Details

    • HttpClientTransportOverUnixSockets

      public HttpClientTransportOverUnixSockets(String unixSocket)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • newOrigin

      public Origin newOrigin(HttpRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: HttpClientTransport
      Creates a new Origin with the given request.
      Parameters:
      request - the request that triggers the creation of the Origin
      Returns:
      an Origin that identifies a destination
    • newHttpDestination

      public HttpDestination newHttpDestination(Origin origin)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: HttpClientTransport
      Creates a new, transport-specific, HttpDestination object.

      HttpDestination controls the destination-connection cardinality: protocols like HTTP have 1-N cardinality, while multiplexed protocols like HTTP/2 have a 1-1 cardinality.

      Parameters:
      origin - the destination origin
      Returns:
      a new, transport-specific, HttpDestination object
    • newConnection

      public Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      endPoint - the EndPoint to link the newly created connection to
      context - the context data to create the connection
      Returns:
      a new Connection
      Throws:
      IOException - if the connection cannot be created