java.io.Closeable, java.lang.AutoCloseable, Connectionpublic abstract class HttpConnection extends java.lang.Object implements Connection
| Modifier | Constructor | Description |
|---|---|---|
protected |
HttpConnection(HttpDestination destination) |
| Modifier and Type | Method | Description |
|---|---|---|
HttpClient |
getHttpClient() |
|
HttpDestination |
getHttpDestination() |
|
protected void |
normalizeRequest(Request request) |
|
boolean |
onIdleTimeout(long idleTimeout) |
|
void |
send(Request request,
Response.CompleteListener listener) |
Sends a request with an associated response listener.
|
protected SendFailure |
send(HttpChannel channel,
HttpExchange exchange) |
|
protected abstract SendFailure |
send(HttpExchange exchange) |
|
java.lang.String |
toString() |
close, isClosedprotected 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 Connectionrequest - 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(long idleTimeout)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2017 Webtide. All rights reserved.