Class HttpConnection
java.lang.Object
org.eclipse.jetty.client.transport.HttpConnection
- All Implemented Interfaces:
 Closeable, AutoCloseable, Connection, IConnection, Attachable
- 
Field Summary
Fields inherited from interface Connection
PROMISE_CONTEXT_KEY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected abstract Iterator<HttpChannel> protected voidnormalizeRequest(HttpRequest request) booleanonIdleTimeout(long idleTimeout, Throwable failure) voidsend(Request request, Response.CompleteListener listener) Sends a request with an associated response listener.protected SendFailuresend(HttpChannel channel, HttpExchange exchange) voidsetAttachment(Object obj) Attaches the given object for later retrieval.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Connection
close, getLocalSocketAddress, getRemoteSocketAddress, getSslSessionData, isClosedMethods inherited from interface IConnection
send 
- 
Constructor Details
- 
HttpConnection
 
 - 
 - 
Method Details
- 
getHttpClient
 - 
getHttpDestination
 - 
getHttpChannels
 - 
send
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
 - 
normalizeRequest
 - 
onIdleTimeout
 - 
setAttachment
Description copied from interface:AttachableAttaches the given object for later retrieval.- Specified by:
 setAttachmentin interfaceAttachable- Parameters:
 obj- the object to attach
 - 
getAttachment
- Specified by:
 getAttachmentin interfaceAttachable- Returns:
 - the object attached to this instance
 - See Also:
 
 - 
destroy
public void destroy() - 
toString
 
 -