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