Package org.eclipse.jetty.client
Class AbstractHttpClientTransport
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.client.AbstractHttpClientTransport
-
- All Implemented Interfaces:
HttpClientTransport
,ClientConnectionFactory
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
- Direct Known Subclasses:
AbstractConnectorHttpClientTransport
,HttpClientTransportOverHTTP2
@ManagedObject public abstract class AbstractHttpClientTransport extends ContainerLifeCycle implements HttpClientTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOG
-
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
-
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
Fields inherited from interface org.eclipse.jetty.client.HttpClientTransport
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpClientTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionPool.Factory
getConnectionPoolFactory()
protected HttpClient
getHttpClient()
void
setConnectionPoolFactory(ConnectionPool.Factory factory)
void
setHttpClient(HttpClient client)
Sets theHttpClient
instance on this transport.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
customize, newConnection
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Methods inherited from interface org.eclipse.jetty.client.HttpClientTransport
connect, newHttpDestination
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Method Detail
-
getHttpClient
protected HttpClient getHttpClient()
-
setHttpClient
public void setHttpClient(HttpClient client)
Description copied from interface:HttpClientTransport
Sets theHttpClient
instance on this transport.This is needed because of a chicken-egg problem: in order to create the
HttpClient
aHttpClientTransport
is needed, that therefore cannot have a reference yet to theHttpClient
.- Specified by:
setHttpClient
in interfaceHttpClientTransport
- Parameters:
client
- theHttpClient
that uses this transport.
-
getConnectionPoolFactory
public ConnectionPool.Factory getConnectionPoolFactory()
- Specified by:
getConnectionPoolFactory
in interfaceHttpClientTransport
- Returns:
- the factory for ConnectionPool instances
-
setConnectionPoolFactory
public void setConnectionPoolFactory(ConnectionPool.Factory factory)
- Specified by:
setConnectionPoolFactory
in interfaceHttpClientTransport
- Parameters:
factory
- the factory for ConnectionPool instances
-
-