Package org.eclipse.jetty.client.http
Class HttpClientTransportOverHTTP
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.client.AbstractHttpClientTransport
-
- org.eclipse.jetty.client.AbstractConnectorHttpClientTransport
-
- org.eclipse.jetty.client.http.HttpClientTransportOverHTTP
-
- All Implemented Interfaces:
HttpClientTransport,org.eclipse.jetty.io.ClientConnectionFactory,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle
@ManagedObject("The HTTP/1.1 client transport") public class HttpClientTransportOverHTTP extends AbstractConnectorHttpClientTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.client.AbstractConnectorHttpClientTransport
AbstractConnectorHttpClientTransport.ClientSelectorManager
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.client.AbstractHttpClientTransport
LOG
-
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
-
Fields inherited from interface org.eclipse.jetty.client.HttpClientTransport
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description HttpClientTransportOverHTTP()HttpClientTransportOverHTTP(int selectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.io.ConnectionnewConnection(org.eclipse.jetty.io.EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)protected HttpConnectionOverHTTPnewHttpConnection(org.eclipse.jetty.io.EndPoint endPoint, HttpDestination destination, org.eclipse.jetty.util.Promise<Connection> promise)HttpDestinationnewHttpDestination(Origin origin)Creates a new, transport-specific,HttpDestinationobject.-
Methods inherited from class org.eclipse.jetty.client.AbstractConnectorHttpClientTransport
configure, connect, connectFailed, doStart, doStop, getSelectorManager, getSelectors, newSelectorManager
-
Methods inherited from class org.eclipse.jetty.client.AbstractHttpClientTransport
getConnectionPoolFactory, getHttpClient, setConnectionPoolFactory, setHttpClient
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
-
-
-
-
Method Detail
-
newHttpDestination
public HttpDestination newHttpDestination(Origin origin)
Description copied from interface:HttpClientTransportCreates a new, transport-specific,HttpDestinationobject.HttpDestinationcontrols 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,
HttpDestinationobject
-
newConnection
public org.eclipse.jetty.io.Connection newConnection(org.eclipse.jetty.io.EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException- Throws:
java.io.IOException
-
newHttpConnection
protected HttpConnectionOverHTTP newHttpConnection(org.eclipse.jetty.io.EndPoint endPoint, HttpDestination destination, org.eclipse.jetty.util.Promise<Connection> promise)
-
-