@ManagedObject public abstract class AbstractHttpClientTransport extends ContainerLifeCycle implements HttpClientTransport
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
CONNECTOR_CONTEXT_KEY
Constructor and Description |
---|
AbstractHttpClientTransport() |
Modifier and Type | Method and Description |
---|---|
ConnectionPool.Factory |
getConnectionPoolFactory() |
protected HttpClient |
getHttpClient() |
void |
setConnectionPoolFactory(ConnectionPool.Factory factory) |
void |
setHttpClient(HttpClient client)
Sets the
HttpClient instance on this transport. |
addBean, 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
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
connect, newHttpDestination
customize, newConnection
dumpObjects, dumpSelf
protected static final Logger LOG
protected HttpClient getHttpClient()
public void setHttpClient(HttpClient client)
HttpClientTransport
HttpClient
instance on this transport.
This is needed because of a chicken-egg problem: in order to create the HttpClient
a HttpClientTransport
is needed, that therefore cannot have a reference yet to the
HttpClient
.
setHttpClient
in interface HttpClientTransport
client
- the HttpClient
that uses this transport.public ConnectionPool.Factory getConnectionPoolFactory()
getConnectionPoolFactory
in interface HttpClientTransport
public void setConnectionPoolFactory(ConnectionPool.Factory factory)
setConnectionPoolFactory
in interface HttpClientTransport
factory
- the factory for ConnectionPool instancesCopyright © 1995–2023 Webtide. All rights reserved.