Package org.eclipse.jetty.client
Class HttpProxy.TunnelPromise
- java.lang.Object
-
- org.eclipse.jetty.client.HttpProxy.TunnelPromise
-
- All Implemented Interfaces:
Promise<Connection>
- Enclosing class:
- HttpProxy
private static class HttpProxy.TunnelPromise extends java.lang.Object implements Promise<Connection>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Wrapper<W>
-
-
Field Summary
Fields Modifier and Type Field Description private Response.CompleteListener
listener
private Promise<Connection>
promise
private Request
request
-
Constructor Summary
Constructors Modifier Constructor Description private
TunnelPromise(Request request, Response.CompleteListener listener, Promise<Connection> promise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(java.lang.Throwable x)
Callback invoked when the operation fails.private void
setEndPoint(EndPoint endPoint)
void
succeeded(Connection connection)
Callback invoked when the operation completes.
-
-
-
Field Detail
-
request
private final Request request
-
listener
private final Response.CompleteListener listener
-
promise
private final Promise<Connection> promise
-
-
Constructor Detail
-
TunnelPromise
private TunnelPromise(Request request, Response.CompleteListener listener, Promise<Connection> promise)
-
-
Method Detail
-
succeeded
public void succeeded(Connection connection)
Description copied from interface:Promise
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfacePromise<Connection>
- Parameters:
connection
- the context- See Also:
Promise.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Promise
Callback invoked when the operation fails.
- Specified by:
failed
in interfacePromise<Connection>
- Parameters:
x
- the reason for the operation failure
-
setEndPoint
private void setEndPoint(EndPoint endPoint)
-
-