public class HttpConnectionOverHTTP extends AbstractConnection implements Connection, Sweeper.Sweepable
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Constructor and Description |
|---|
HttpConnectionOverHTTP(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abort(Throwable failure) |
void |
close() |
protected void |
close(Throwable failure) |
HttpChannelOverHTTP |
getHttpChannel() |
HttpDestinationOverHTTP |
getHttpDestination() |
boolean |
isClosed() |
protected HttpChannelOverHTTP |
newHttpChannel() |
void |
onFillable() |
void |
onOpen() |
protected boolean |
onReadTimeout() |
void |
release() |
protected void |
send(HttpExchange exchange) |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
boolean |
softClose() |
boolean |
sweep() |
String |
toString() |
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isDispatchIO, isFillInterested, onClose, onFillInterestedFailed, setInputBufferSizepublic HttpConnectionOverHTTP(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise)
protected HttpChannelOverHTTP newHttpChannel()
public HttpChannelOverHTTP getHttpChannel()
public HttpDestinationOverHTTP getHttpDestination()
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 void send(HttpExchange exchange)
public void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic boolean isClosed()
protected boolean onReadTimeout()
onReadTimeout in class AbstractConnectionpublic void onFillable()
onFillable in class AbstractConnectionpublic void release()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface Connectionclose in class AbstractConnectionprotected void close(Throwable failure)
public boolean softClose()
protected boolean abort(Throwable failure)
public boolean sweep()
sweep in interface Sweeper.Sweepablepublic String toString()
toString in class AbstractConnectionCopyright © 1995-2015 Webtide. All Rights Reserved.