Package org.eclipse.jetty.client
Class HttpDestination
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.client.HttpDestination
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Destination
,Callback
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
,Invocable
- Direct Known Subclasses:
MultiplexHttpDestination
,PoolingHttpDestination
@ManagedObject @Deprecated(since="2021-05-27") public abstract class HttpDestination extends ContainerLifeCycle implements Destination, java.io.Closeable, Callback, Dumpable
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Constructor Description HttpDestination(HttpClient client, Origin origin)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
abort(java.lang.Throwable cause)
Deprecated.Aborts all theHttpExchange
s queued in this destination.java.lang.String
asString()
Deprecated.void
close()
Deprecated.void
close(Connection connection)
Deprecated.useremove(Connection)
insteadvoid
dump(java.lang.Appendable out, java.lang.String indent)
Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.void
failed(java.lang.Throwable x)
Deprecated.Callback invoked when the operation fails.ClientConnectionFactory
getClientConnectionFactory()
Deprecated.Origin.Address
getConnectAddress()
Deprecated.ConnectionPool
getConnectionPool()
Deprecated.java.lang.String
getHost()
Deprecated.HttpField
getHostField()
Deprecated.HttpClient
getHttpClient()
Deprecated.java.util.Queue<HttpExchange>
getHttpExchanges()
Deprecated.Origin
getOrigin()
Deprecated.int
getPort()
Deprecated.ProxyConfiguration.Proxy
getProxy()
Deprecated.int
getQueuedRequestCount()
Deprecated.RequestNotifier
getRequestNotifier()
Deprecated.ResponseNotifier
getResponseNotifier()
Deprecated.java.lang.String
getScheme()
Deprecated.boolean
isSecure()
Deprecated.void
newConnection(Promise<Connection> promise)
Deprecated.Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
.void
release(Connection connection)
Deprecated.boolean
remove(Connection connection)
Deprecated.boolean
remove(HttpExchange exchange)
Deprecated.void
send()
Deprecated.void
send(Request request, Response.CompleteListener listener)
Deprecated.void
send(HttpExchange exchange)
Deprecated.void
succeeded()
Deprecated.Callback invoked when the operation completes.java.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
-
-
-
Constructor Detail
-
HttpDestination
public HttpDestination(HttpClient client, Origin origin)
Deprecated.
-
-
Method Detail
-
isSecure
public boolean isSecure()
Deprecated.
-
getHttpClient
public HttpClient getHttpClient()
Deprecated.
-
getOrigin
public Origin getOrigin()
Deprecated.
-
getHttpExchanges
public java.util.Queue<HttpExchange> getHttpExchanges()
Deprecated.
-
getRequestNotifier
public RequestNotifier getRequestNotifier()
Deprecated.
-
getResponseNotifier
public ResponseNotifier getResponseNotifier()
Deprecated.
-
getProxy
public ProxyConfiguration.Proxy getProxy()
Deprecated.
-
getClientConnectionFactory
public ClientConnectionFactory getClientConnectionFactory()
Deprecated.
-
getScheme
@ManagedAttribute(value="The destination scheme", readonly=true) public java.lang.String getScheme()
Deprecated.- Specified by:
getScheme
in interfaceDestination
- Returns:
- the scheme of this destination, such as "http" or "https"
-
getHost
@ManagedAttribute(value="The destination host", readonly=true) public java.lang.String getHost()
Deprecated.- Specified by:
getHost
in interfaceDestination
- Returns:
- the host of this destination, such as "127.0.0.1" or "google.com"
-
getPort
@ManagedAttribute(value="The destination port", readonly=true) public int getPort()
Deprecated.- Specified by:
getPort
in interfaceDestination
- Returns:
- the port of this destination such as 80 or 443
-
getQueuedRequestCount
@ManagedAttribute(value="The number of queued requests", readonly=true) public int getQueuedRequestCount()
Deprecated.
-
getConnectAddress
public Origin.Address getConnectAddress()
Deprecated.
-
getHostField
public HttpField getHostField()
Deprecated.
-
getConnectionPool
@ManagedAttribute(value="The connection pool", readonly=true) public ConnectionPool getConnectionPool()
Deprecated.
-
succeeded
public void succeeded()
Deprecated.Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Deprecated.Description copied from interface:Callback
Callback invoked when the operation fails.
-
send
public void send(Request request, Response.CompleteListener listener)
Deprecated.
-
send
public void send(HttpExchange exchange)
Deprecated.
-
send
public void send()
Deprecated.
-
newConnection
public void newConnection(Promise<Connection> promise)
Deprecated.Description copied from interface:Destination
Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
.Use
FuturePromise
to wait for the connection:Destination destination = ...; FuturePromise<Connection> futureConnection = new FuturePromise<>(); destination.newConnection(futureConnection); Connection connection = futureConnection.get(5, TimeUnit.SECONDS);
- Specified by:
newConnection
in interfaceDestination
- Parameters:
promise
- the promise of a new, unpooled,Connection
-
remove
public boolean remove(HttpExchange exchange)
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
release
public void release(Connection connection)
Deprecated.
-
remove
public boolean remove(Connection connection)
Deprecated.
-
close
@Deprecated public void close(Connection connection)
Deprecated.useremove(Connection)
instead- Parameters:
connection
- the connection to remove
-
abort
public void abort(java.lang.Throwable cause)
Deprecated.Aborts all theHttpExchange
s queued in this destination.- Parameters:
cause
- the abort cause
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Deprecated.Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dump
in interfaceDumpable
- Overrides:
dump
in classContainerLifeCycle
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
java.io.IOException
- if unable to write to Appendable
-
asString
public java.lang.String asString()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-