Package org.eclipse.jetty.client
Class HttpConnection
java.lang.Object
org.eclipse.jetty.client.HttpConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection,Attachable
@Deprecated(since="2021-05-27")
public abstract class HttpConnection
extends Object
implements Connection, Attachable
Deprecated.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.booleanonIdleTimeout(long idleTimeout) Deprecated.voidsend(Request request, Response.CompleteListener listener) Deprecated.Sends a request with an associated response listener.voidsetAttachment(Object obj) Deprecated.Attaches the given object to this stream for later retrieval.toString()Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.client.api.Connection
close, isClosed
-
Method Details
-
getHttpClient
Deprecated. -
getHttpDestination
Deprecated. -
send
Deprecated.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
-
onIdleTimeout
public boolean onIdleTimeout(long idleTimeout) Deprecated. -
setAttachment
Deprecated.Description copied from interface:AttachableAttaches the given object to this stream for later retrieval.- Specified by:
setAttachmentin interfaceAttachable- Parameters:
obj- the object to attach to this instance
-
getAttachment
Deprecated.- Specified by:
getAttachmentin interfaceAttachable- Returns:
- the object attached to this instance
- See Also:
-
toString
Deprecated.
-