HttpClientTransport
, ClientConnectionFactory
, Container
, Destroyable
, Dumpable
, LifeCycle
HttpClientTransportOverUnixSockets
@ManagedObject("The HTTP/1.1 client transport") public class HttpClientTransportOverHTTP extends AbstractConnectorHttpClientTransport
AbstractConnectorHttpClientTransport.ClientSelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
LOG
FAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING
CONNECTOR_CONTEXT_KEY
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
Constructor | Description |
---|---|
HttpClientTransportOverHTTP() |
|
HttpClientTransportOverHTTP(int selectors) |
Modifier and Type | Method | Description |
---|---|---|
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. |
configure, connect, connectFailed, doStart, doStop, getSelectors, newSelectorManager
getConnectionPoolFactory, getHttpClient, setConnectionPoolFactory, setHttpClient
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
customize
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
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)
Copyright © 1995–2018 Webtide. All rights reserved.