java.io.Closeable, java.lang.AutoCloseable, Connection, Connection, Connection.UpgradeFrom, Sweeper.Sweepablepublic class HttpConnectionOverHTTP extends AbstractConnection implements Connection, Connection.UpgradeFrom, Sweeper.Sweepable
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Constructor | Description |
|---|---|
HttpConnectionOverHTTP(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
abort(java.lang.Throwable failure) |
|
void |
close() |
|
protected void |
close(java.lang.Throwable failure) |
|
HttpChannelOverHTTP |
getHttpChannel() |
|
HttpDestinationOverHTTP |
getHttpDestination() |
|
boolean |
isClosed() |
|
protected HttpChannelOverHTTP |
newHttpChannel() |
|
void |
onFillable() |
|
boolean |
onIdleExpired() |
|
void |
onOpen() |
|
java.nio.ByteBuffer |
onUpgradeFrom() |
|
void |
release() |
|
void |
remove() |
|
void |
send(Request request,
Response.CompleteListener listener) |
Sends a request with an associated response listener.
|
protected SendFailure |
send(HttpExchange exchange) |
|
boolean |
sweep() |
|
java.lang.String |
toConnectionString() |
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onReadTimeout, removeListener, setInputBufferSize, toString, tryFillInterested, tryFillInterestedpublic 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.
send in interface Connectionrequest - the request to sendlistener - the response listenerprotected SendFailure send(HttpExchange exchange)
public void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic boolean isClosed()
isClosed in interface ConnectionConnection.close()public boolean onIdleExpired()
onIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionpublic void onFillable()
onFillable in class AbstractConnectionpublic java.nio.ByteBuffer onUpgradeFrom()
onUpgradeFrom in interface Connection.UpgradeFrompublic void release()
public void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Connectionclose in interface Connectionclose in class AbstractConnectionprotected void close(java.lang.Throwable failure)
protected boolean abort(java.lang.Throwable failure)
public boolean sweep()
sweep in interface Sweeper.Sweepablepublic void remove()
public java.lang.String toConnectionString()
toConnectionString in class AbstractConnectionCopyright © 1995–2017 Webtide. All rights reserved.