public class HttpClientTransportOverHTTP extends AbstractHttpClientTransport
AbstractHttpClientTransport.ClientSelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
ClientConnectionFactory.Helper
Container.InheritedListener, Container.Listener
LifeCycle.Listener
LOG
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
Constructor and Description |
---|
HttpClientTransportOverHTTP() |
HttpClientTransportOverHTTP(int selectors) |
Modifier and Type | Method and Description |
---|---|
Connection |
newConnection(EndPoint endPoint,
Map<String,Object> context) |
HttpDestination |
newHttpDestination(Origin origin)
Creates a new, transport-specific,
HttpDestination object. |
configure, connect, connectFailed, doStart, doStop, getHttpClient, newSelectorManager, setHttpClient
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
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 SPDY have a 1-1 cardinality.
origin
- the destination originHttpDestination
objectpublic Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
endPoint
- the EndPoint
to link the newly created connection tocontext
- the context data to create the connectionConnection
IOException
- if the connection cannot be createdCopyright © 1995-2015 Webtide. All Rights Reserved.