Package org.eclipse.jetty.client
Class HttpConnection
- java.lang.Object
-
- org.eclipse.jetty.client.HttpConnection
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection,Attachable
@Deprecated(since="2021-05-27") public abstract class HttpConnection extends java.lang.Object implements Connection, Attachable
Deprecated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetAttachment()Deprecated.HttpClientgetHttpClient()Deprecated.HttpDestinationgetHttpDestination()Deprecated.booleanonIdleTimeout(long idleTimeout)Deprecated.voidsend(Request request, Response.CompleteListener listener)Deprecated.Sends a request with an associated response listener.voidsetAttachment(java.lang.Object obj)Deprecated.Attaches the given object to this stream for later retrieval.java.lang.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.api.Connection
close, isClosed
-
-
-
-
Method Detail
-
getHttpClient
public HttpClient getHttpClient()
Deprecated.
-
getHttpDestination
public HttpDestination getHttpDestination()
Deprecated.
-
send
public void send(Request request, Response.CompleteListener listener)
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
public void setAttachment(java.lang.Object obj)
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
public java.lang.Object getAttachment()
Deprecated.- Specified by:
getAttachmentin interfaceAttachable- Returns:
- the object attached to this instance
- See Also:
Attachable.setAttachment(Object)
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-