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) |
protected abstract void |
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, waitcloseprotected HttpConnection(HttpDestination destination)
public HttpClient getHttpClient()
public HttpDestination 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.send in interface Connectionrequest - the request to sendlistener - the response listenerprotected abstract void send(HttpExchange exchange)
protected void normalizeRequest(Request request)
Copyright © 1995-2015 Webtide. All Rights Reserved.