public abstract class HttpConnection extends Object implements Connection
Modifier | Constructor and Description |
---|---|
protected |
HttpConnection(HttpDestination destination) |
Modifier and Type | Method and Description |
---|---|
HttpClient |
getHttpClient() |
HttpDestination |
getHttpDestination() |
protected void |
normalizeRequest(Request request) |
boolean |
onIdleTimeout() |
protected SendFailure |
send(HttpChannel channel,
HttpExchange exchange) |
protected abstract SendFailure |
send(HttpExchange exchange) |
void |
send(Request request,
Response.CompleteListener listener)
Sends a request with an associated response listener.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
protected HttpConnection(HttpDestination destination)
public HttpClient getHttpClient()
public HttpDestination 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 Connection
request
- the request to sendlistener
- the response listenerprotected abstract SendFailure send(HttpExchange exchange)
protected void normalizeRequest(Request request)
protected SendFailure send(HttpChannel channel, HttpExchange exchange)
public boolean onIdleTimeout()
Copyright © 1995-2016 Webtide. All Rights Reserved.