public class HttpConnection extends AbstractConnection implements Connection
Connection.ListenerEXECUTE_ONFILLABLE| Constructor and Description |
|---|
HttpConnection(HttpClient client,
EndPoint endPoint,
HttpDestination destination) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort(Throwable cause) |
protected void |
associate(HttpExchange exchange) |
void |
close() |
void |
complete(HttpExchange exchange,
boolean success) |
protected HttpExchange |
disassociate() |
HttpDestination |
getDestination() |
HttpExchange |
getExchange() |
HttpClient |
getHttpClient() |
protected void |
idleTimeout() |
void |
onFillable() |
void |
onOpen() |
protected boolean |
onReadTimeout() |
void |
proceed(boolean proceed) |
protected void |
receive() |
void |
send(HttpExchange exchange) |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
String |
toString() |
addListener, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, onClose, onFillInterestedFailed, setInputBufferSizepublic HttpConnection(HttpClient client, EndPoint endPoint, HttpDestination destination)
public HttpClient getHttpClient()
public HttpDestination getDestination()
public void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionprotected boolean onReadTimeout()
onReadTimeout in class AbstractConnectionprotected void idleTimeout()
public void send(Request request, Response.CompleteListener listener)
ConnectionRequest#send(Response.Listener) 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 listenerpublic void send(HttpExchange exchange)
public HttpExchange getExchange()
protected void associate(HttpExchange exchange)
protected HttpExchange disassociate()
public void onFillable()
onFillable in class AbstractConnectionprotected void receive()
public void complete(HttpExchange exchange, boolean success)
public boolean abort(Throwable cause)
public void proceed(boolean proceed)
public void close()
close in interface AutoCloseableclose in interface Connectionclose in class AbstractConnectionpublic String toString()
toString in class AbstractConnectionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.