public class HttpConnectionOverHTTP extends AbstractConnection implements Connection
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.ListenerEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| Constructor and Description |
|---|
HttpConnectionOverHTTP(EndPoint endPoint,
HttpDestination destination) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
HttpChannelOverHTTP |
getHttpChannel() |
HttpDestinationOverHTTP |
getHttpDestination() |
protected boolean |
isClosed() |
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.
|
String |
toString() |
addListener, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, setInputBufferSizepublic HttpConnectionOverHTTP(EndPoint endPoint, HttpDestination destination)
public HttpChannelOverHTTP getHttpChannel()
public HttpDestinationOverHTTP 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()
onOpen in interface ConnectiononOpen in class AbstractConnectionprotected 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 AbstractConnectionpublic String toString()
toString in class AbstractConnectionCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.