@ManagedObject(value="The FastCGI/1.0 client transport") public class HttpClientTransportOverFCGI extends AbstractConnectorHttpClientTransport
AbstractConnectorHttpClientTransport.ClientSelectorManager
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
LOG
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
HTTP_CONNECTION_PROMISE_CONTEXT_KEY, HTTP_DESTINATION_CONTEXT_KEY
CONNECTOR_CONTEXT_KEY
Constructor and Description |
---|
HttpClientTransportOverFCGI(int selectors,
boolean multiplexed,
java.lang.String scriptRoot) |
HttpClientTransportOverFCGI(java.lang.String scriptRoot) |
Modifier and Type | Method and Description |
---|---|
protected void |
customize(Request request,
HttpFields fastCGIHeaders) |
java.lang.String |
getScriptRoot() |
boolean |
isMultiplexed() |
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected HttpConnectionOverFCGI |
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
addBean, 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
dumpObjects, dumpSelf
public HttpClientTransportOverFCGI(java.lang.String scriptRoot)
public HttpClientTransportOverFCGI(int selectors, boolean multiplexed, java.lang.String scriptRoot)
@ManagedAttribute(value="Whether connections are multiplexed", readonly=true) public boolean isMultiplexed()
@ManagedAttribute(value="The scripts root directory", readonly=true) public java.lang.String getScriptRoot()
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 HttpConnectionOverFCGI newHttpConnection(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
protected void customize(Request request, HttpFields fastCGIHeaders)
Copyright © 1995–2023 Webtide. All rights reserved.