java.lang.Object
org.eclipse.jetty.client.HttpConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Connection
,IConnection
,org.eclipse.jetty.util.Attachable
public abstract class HttpConnection
extends Object
implements IConnection, org.eclipse.jetty.util.Attachable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
destroy()
protected abstract Iterator<HttpChannel>
protected void
normalizeRequest
(HttpRequest request) boolean
onIdleTimeout
(long idleTimeout, Throwable failure) void
send
(Request request, Response.CompleteListener listener) Sends a request with an associated response listener.protected SendFailure
send
(HttpChannel channel, HttpExchange exchange) void
setAttachment
(Object obj) toString()
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 Details
-
HttpConnection
-
-
Method Details
-
getHttpClient
-
getHttpDestination
-
getHttpChannels
-
send
Description copied from interface:Connection
Sends 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:
send
in interfaceConnection
- Parameters:
request
- the request to sendlistener
- the response listener
-
send
-
normalizeRequest
-
onIdleTimeout
-
setAttachment
- Specified by:
setAttachment
in interfaceorg.eclipse.jetty.util.Attachable
-
getAttachment
- Specified by:
getAttachment
in interfaceorg.eclipse.jetty.util.Attachable
-
destroy
protected void destroy() -
toString
-