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 voidabort(java.lang.Throwable cause)Deprecated.Aborts all theHttpExchanges queued in this destination.java.lang.StringasString()Deprecated.voidclose()Deprecated.voidclose(Connection connection)Deprecated.useremove(Connection)insteadvoiddump(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.voidfailed(java.lang.Throwable x)Deprecated.Callback invoked when the operation fails.ClientConnectionFactorygetClientConnectionFactory()Deprecated.Origin.AddressgetConnectAddress()Deprecated.ConnectionPoolgetConnectionPool()Deprecated.java.lang.StringgetHost()Deprecated.HttpFieldgetHostField()Deprecated.HttpClientgetHttpClient()Deprecated.java.util.Queue<HttpExchange>getHttpExchanges()Deprecated.OrigingetOrigin()Deprecated.intgetPort()Deprecated.ProxyConfiguration.ProxygetProxy()Deprecated.intgetQueuedRequestCount()Deprecated.RequestNotifiergetRequestNotifier()Deprecated.ResponseNotifiergetResponseNotifier()Deprecated.java.lang.StringgetScheme()Deprecated.booleanisSecure()Deprecated.voidnewConnection(Promise<Connection> promise)Deprecated.Creates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise.voidrelease(Connection connection)Deprecated.booleanremove(Connection connection)Deprecated.booleanremove(HttpExchange exchange)Deprecated.voidsend()Deprecated.voidsend(Request request, Response.CompleteListener listener)Deprecated.voidsend(HttpExchange exchange)Deprecated.voidsucceeded()Deprecated.Callback invoked when the operation completes.java.lang.StringtoString()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:
getSchemein 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:
getHostin 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:
getPortin 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:CallbackCallback invoked when the operation completes.
- Specified by:
succeededin interfaceCallback- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Deprecated.Description copied from interface:CallbackCallback 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:DestinationCreates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise.Use
FuturePromiseto wait for the connection:Destination destination = ...; FuturePromise<Connection> futureConnection = new FuturePromise<>(); destination.newConnection(futureConnection); Connection connection = futureConnection.get(5, TimeUnit.SECONDS);
- Specified by:
newConnectionin interfaceDestination- Parameters:
promise- the promise of a new, unpooled,Connection
-
remove
public boolean remove(HttpExchange exchange)
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein 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 theHttpExchanges queued in this destination.- Parameters:
cause- the abort cause
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDeprecated.Description copied from interface:DumpableDump 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:
dumpin interfaceDumpable- Overrides:
dumpin 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:
toStringin classAbstractLifeCycle
-
-