Class HttpClientConnectionFactory
java.lang.Object
org.eclipse.jetty.client.transport.HttpClientConnectionFactory
- All Implemented Interfaces:
ClientConnectionFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresentation of theHTTP/1.1application protocol used byHttpClientTransportDynamic.Nested classes/interfaces inherited from interface ClientConnectionFactory
ClientConnectionFactory.Decorator, ClientConnectionFactory.Info -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientConnectionFactory.InfoRepresentation of theHTTP/1.1application protocol used byHttpClientTransportDynamic.Fields inherited from interface ClientConnectionFactory
CLIENT_CONTEXT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleannewConnection(EndPoint endPoint, Map<String, Object> context) voidsetInitializeConnections(boolean initialize) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientConnectionFactory
customize
-
Field Details
-
HTTP11
Representation of the
HTTP/1.1application protocol used byHttpClientTransportDynamic.
-
-
Constructor Details
-
HttpClientConnectionFactory
public HttpClientConnectionFactory()
-
-
Method Details
-
isInitializeConnections
public boolean isInitializeConnections()- Returns:
- whether newly created connections should be initialized with an
OPTIONS * HTTP/1.1request
-
setInitializeConnections
public void setInitializeConnections(boolean initialize) - Parameters:
initialize- whether newly created connections should be initialized with anOPTIONS * HTTP/1.1request
-
newConnection
- Specified by:
newConnectionin interfaceClientConnectionFactory- Parameters:
endPoint- theEndPointto link the newly created connection tocontext- the context data to create the connection- Returns:
- a new
Connection
-