Class HttpClientConnectionFactory

java.lang.Object
org.eclipse.jetty.client.transport.HttpClientConnectionFactory
All Implemented Interfaces:
ClientConnectionFactory

public class HttpClientConnectionFactory extends Object implements ClientConnectionFactory
  • Field Details

  • Constructor Details

    • HttpClientConnectionFactory

      public HttpClientConnectionFactory()
  • Method Details

    • isInitializeConnections

      public boolean isInitializeConnections()
      Returns:
      whether newly created connections should be initialized with an OPTIONS * HTTP/1.1 request
    • setInitializeConnections

      public void setInitializeConnections(boolean initialize)
      Parameters:
      initialize - whether newly created connections should be initialized with an OPTIONS * HTTP/1.1 request
    • newConnection

      public Connection newConnection(EndPoint endPoint, Map<String,Object> context)
      Specified by:
      newConnection in interface ClientConnectionFactory
      Parameters:
      endPoint - the EndPoint to link the newly created connection to
      context - the context data to create the connection
      Returns:
      a new Connection