- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.client.AbstractHttpClientTransport
-
- 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.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
AbstractConnectorHttpClientTransport
@ManagedObject public abstract class AbstractHttpClientTransport extends org.eclipse.jetty.util.component.ContainerLifeCycle implements HttpClientTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
org.eclipse.jetty.io.ClientConnectionFactory.Decorator, org.eclipse.jetty.io.ClientConnectionFactory.Info
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG-
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, 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 AbstractHttpClientTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconnectFailed(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable failure)ConnectionPool.FactorygetConnectionPoolFactory()protected HttpClientgetHttpClient()voidsetConnectionPoolFactory(ConnectionPool.Factory factory)voidsetHttpClient(HttpClient client)Sets theHttpClientinstance on this transport.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, 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.Container
getCachedBeans, getEventListeners
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Methods inherited from interface org.eclipse.jetty.client.HttpClientTransport
connect, newHttpDestination, newOrigin
-
-
-
-
Method Detail
-
getHttpClient
protected HttpClient getHttpClient()
-
setHttpClient
public void setHttpClient(HttpClient client)
Description copied from interface:HttpClientTransportSets theHttpClientinstance on this transport.This is needed because of a chicken-egg problem: in order to create the
HttpClienta HttpClientTransport is needed, that therefore cannot have a reference yet to theHttpClient.- Specified by:
setHttpClientin interfaceHttpClientTransport- Parameters:
client- theHttpClientthat uses this transport.
-
getConnectionPoolFactory
public ConnectionPool.Factory getConnectionPoolFactory()
- Specified by:
getConnectionPoolFactoryin interfaceHttpClientTransport- Returns:
- the factory for ConnectionPool instances
-
setConnectionPoolFactory
public void setConnectionPoolFactory(ConnectionPool.Factory factory)
- Specified by:
setConnectionPoolFactoryin interfaceHttpClientTransport- Parameters:
factory- the factory for ConnectionPool instances
-
connectFailed
protected void connectFailed(java.util.Map<java.lang.String,java.lang.Object> context, java.lang.Throwable failure)
-
-