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:
HttpClient.Aware, HttpClientTransport, ClientConnectionFactory, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
- Direct Known Subclasses:
AbstractConnectorHttpClientTransport, HttpClientTransportOverHTTP2, HttpClientTransportOverHTTP3
@ManagedObject
public abstract class AbstractHttpClientTransport
extends ContainerLifeCycle
implements HttpClientTransport
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface ClientConnectionFactory
ClientConnectionFactory.Decorator, ClientConnectionFactory.InfoNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from interface ClientConnectionFactory
CLIENT_CONTEXT_KEYFields inherited from interface HttpClientTransport
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnectFailed(Map<String, Object> context, Throwable failure) protected HttpClientvoidSet the factory for ConnectionPool instances.voidsetHttpClient(HttpClient client) Sets theHttpClientinstance on this transport.Methods inherited from class ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ClientConnectionFactory
customize, newConnectionMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpableMethods inherited from interface HttpClientTransport
connect, connect, newDestination, newOrigin
-
Constructor Details
-
AbstractHttpClientTransport
public AbstractHttpClientTransport()
-
-
Method Details
-
getHttpClient
-
setHttpClient
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 interfaceHttpClient.Aware- Specified by:
setHttpClientin interfaceHttpClientTransport- Parameters:
client- theHttpClientthat uses this transport.
-
getConnectionPoolFactory
- Specified by:
getConnectionPoolFactoryin interfaceHttpClientTransport- Returns:
- the factory for ConnectionPool instances
-
setConnectionPoolFactory
Description copied from interface:HttpClientTransportSet the factory for ConnectionPool instances.- Specified by:
setConnectionPoolFactoryin interfaceHttpClientTransport- Parameters:
factory- the factory for ConnectionPool instances
-
connectFailed
-