public class HttpConnectionOverFCGI extends AbstractConnection implements Connection
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.ListenerEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| Constructor and Description |
|---|
HttpConnectionOverFCGI(EndPoint endPoint,
HttpDestination destination,
boolean multiplexed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(Throwable failure) |
void |
close()
Performs a logical close of this connection.
|
protected void |
close(Throwable failure) |
protected boolean |
closeByHTTP(HttpFields fields) |
HttpDestination |
getHttpDestination() |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this
Connection is opened. |
protected boolean |
onReadTimeout()
Callback method invoked when the endpoint failed to be ready to be read after a timeout
|
protected void |
release(HttpChannelOverFCGI channel) |
protected void |
send(HttpExchange exchange) |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
String |
toString() |
addListener, failedCallback, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, setInputBufferSizepublic HttpConnectionOverFCGI(EndPoint endPoint, HttpDestination destination, boolean multiplexed)
public HttpDestination getHttpDestination()
public void send(Request request, Response.CompleteListener listener)
ConnectionRequest.send(Response.CompleteListener) will eventually call this method to send the request.
It is exposed to allow applications to send requests via unpooled connections.request - the request to sendlistener - the response listenerprotected void send(HttpExchange exchange)
public void onOpen()
ConnectionCallback method invoked when this Connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic void onFillable()
AbstractConnectionCallback method invoked when the endpoint is ready to be read.
onFillable in class AbstractConnectionAbstractConnection.fillInterested()protected boolean onReadTimeout()
AbstractConnectionCallback method invoked when the endpoint failed to be ready to be read after a timeout
onReadTimeout in class AbstractConnectionprotected void release(HttpChannelOverFCGI channel)
public void close()
ConnectionPerforms a logical close of this connection.
For simple connections, this may just mean to delegate the close to the associated
EndPoint but, for example, SSL connections should write the SSL close message
before closing the associated EndPoint.
close in interface Closeableclose in interface AutoCloseableclose in interface Connectionclose in class AbstractConnectionprotected void close(Throwable failure)
protected boolean closeByHTTP(HttpFields fields)
protected void abort(Throwable failure)
public String toString()
toString in class AbstractConnectionCopyright © 1995-2015 Webtide. All Rights Reserved.