@ManagedObject(value="The HTTP/1.1 client transport") public class HttpClientTransportOverHTTP extends AbstractConnectorHttpClientTransport
AbstractConnectorHttpClientTransport.ClientSelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
ClientConnectionFactory.Decorator
Container.InheritedListener, Container.Listener
Dumpable.DumpableContainer
LifeCycle.Listener
LOG
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
CONNECTOR_CONTEXT_KEY
Constructor and Description |
---|
HttpClientTransportOverHTTP() |
HttpClientTransportOverHTTP(int selectors) |
Modifier and Type | Method and Description |
---|---|
int |
getHeaderCacheSize() |
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected HttpConnectionOverHTTP |
newHttpConnection(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise) |
HttpDestination |
newHttpDestination(Origin origin)
Creates a new, transport-specific,
HttpDestination object. |
void |
setHeaderCacheSize(int headerCacheSize) |
configure, connect, connectFailed, doStart, doStop, getSelectorManager, getSelectors, newSelectorManager
getConnectionPoolFactory, getHttpClient, setConnectionPoolFactory, setHttpClient
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
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
customize
isDumpable
dumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, named
public HttpClientTransportOverHTTP()
public HttpClientTransportOverHTTP(int selectors)
public HttpDestination newHttpDestination(Origin origin)
HttpClientTransport
HttpDestination
object.
HttpDestination
controls the destination-connection cardinality: protocols like
HTTP have 1-N cardinality, while multiplexed protocols like HTTP/2 have a 1-1 cardinality.
origin
- the destination originHttpDestination
objectpublic Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
endPoint
- the EndPoint
to link the newly created connection tocontext
- the context data to create the connectionConnection
java.io.IOException
- if the connection cannot be createdprotected HttpConnectionOverHTTP newHttpConnection(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
@ManagedAttribute(value="The maximum allowed size in bytes for an HTTP header field cache") public int getHeaderCacheSize()
public void setHeaderCacheSize(int headerCacheSize)
Copyright © 1995–2021 Webtide. All rights reserved.