public class HttpConnectionOverFCGI extends AbstractConnection implements Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Constructor and Description |
---|
HttpConnectionOverFCGI(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise,
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) |
protected Flusher |
getFlusher() |
HttpDestination |
getHttpDestination() |
boolean |
isClosed() |
protected HttpChannelOverFCGI |
newHttpChannel(int id,
Request request) |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
boolean |
onIdleExpired()
Callback method invoked upon an idle timeout event.
|
void |
onOpen()
Callback method invoked when this connection is opened.
|
protected void |
release(HttpChannelOverFCGI channel) |
protected SendFailure |
send(HttpExchange exchange) |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
String |
toString() |
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isDispatchIO, isFillInterested, onClose, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize
public HttpConnectionOverFCGI(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise, boolean multiplexed)
public HttpDestination getHttpDestination()
protected Flusher getFlusher()
public void send(Request request, Response.CompleteListener listener)
Connection
Request.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 SendFailure send(HttpExchange exchange)
public void onOpen()
Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
in class AbstractConnection
public void onFillable()
AbstractConnection
Callback method invoked when the endpoint is ready to be read.
onFillable
in class AbstractConnection
AbstractConnection.fillInterested()
public boolean onIdleExpired()
Connection
Callback method invoked upon an idle timeout event.
Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed.
When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.
onIdleExpired
in interface Connection
onIdleExpired
in class AbstractConnection
protected void release(HttpChannelOverFCGI channel)
public boolean isClosed()
public void close()
Connection
Performs 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 Closeable
close
in interface AutoCloseable
close
in interface Connection
close
in class AbstractConnection
protected void close(Throwable failure)
protected boolean closeByHTTP(HttpFields fields)
protected void abort(Throwable failure)
protected HttpChannelOverFCGI newHttpChannel(int id, Request request)
public String toString()
toString
in class AbstractConnection
Copyright © 1995-2016 Webtide. All Rights Reserved.