Class HttpClientTransportOverHTTP

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
All Implemented Interfaces:
HttpClientTransport, ClientConnectionFactory, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle

@ManagedObject("The HTTP/1.1 client transport") public class HttpClientTransportOverHTTP extends AbstractConnectorHttpClientTransport
  • Constructor Details

    • HttpClientTransportOverHTTP

      public HttpClientTransportOverHTTP()
    • HttpClientTransportOverHTTP

      public HttpClientTransportOverHTTP(int selectors)
  • Method Details

    • newHttpDestination

      public HttpDestination newHttpDestination(Origin origin)
      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
      Throws:
      IOException
    • newHttpConnection

      protected HttpConnectionOverHTTP newHttpConnection(EndPoint endPoint, HttpDestination destination, org.eclipse.jetty.util.Promise<Connection> promise)
    • getHeaderCacheSize

      @ManagedAttribute("The maximum allowed size in bytes for an HTTP header field cache") public int getHeaderCacheSize()
    • setHeaderCacheSize

      public void setHeaderCacheSize(int headerCacheSize)