- java.lang.Object
-
- org.eclipse.jetty.client.HttpConnection
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection,IConnection
- Direct Known Subclasses:
HttpConnectionOverHTTP2
public abstract class HttpConnection extends java.lang.Object implements IConnection
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpConnection(HttpDestination destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpClientgetHttpClient()HttpDestinationgetHttpDestination()protected voidnormalizeRequest(HttpRequest request)booleanonIdleTimeout(long idleTimeout)voidsend(Request request, Response.CompleteListener listener)Sends a request with an associated response listener.protected SendFailuresend(HttpChannel channel, HttpExchange exchange)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.api.Connection
close, isClosed
-
Methods inherited from interface org.eclipse.jetty.client.IConnection
send
-
-
-
-
Constructor Detail
-
HttpConnection
protected HttpConnection(HttpDestination destination)
-
-
Method Detail
-
getHttpClient
public HttpClient getHttpClient()
-
getHttpDestination
public HttpDestination getHttpDestination()
-
send
public void send(Request request, Response.CompleteListener listener)
Description copied from interface:ConnectionSends a request with an associated response listener.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.- Specified by:
sendin interfaceConnection- Parameters:
request- the request to sendlistener- the response listener
-
send
protected SendFailure send(HttpChannel channel, HttpExchange exchange)
-
normalizeRequest
protected void normalizeRequest(HttpRequest request)
-
onIdleTimeout
public boolean onIdleTimeout(long idleTimeout)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-