Module org.eclipse.jetty.proxy
Package org.eclipse.jetty.proxy
Class ProxyHandler.ProxyResponseListener
java.lang.Object
java.util.concurrent.CompletableFuture<Void>
org.eclipse.jetty.util.Callback.Completable
org.eclipse.jetty.proxy.ProxyHandler.ProxyResponseListener
- All Implemented Interfaces:
CompletionStage<Void>,Future<Void>,EventListener,org.eclipse.jetty.client.Response.AsyncContentListener,org.eclipse.jetty.client.Response.BeginListener,org.eclipse.jetty.client.Response.CompleteListener,org.eclipse.jetty.client.Response.ContentListener,org.eclipse.jetty.client.Response.ContentSourceListener,org.eclipse.jetty.client.Response.FailureListener,org.eclipse.jetty.client.Response.HeaderListener,org.eclipse.jetty.client.Response.HeadersListener,org.eclipse.jetty.client.Response.Listener,org.eclipse.jetty.client.Response.ResponseListener,org.eclipse.jetty.client.Response.SuccessListener,org.eclipse.jetty.util.Callback,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
ProxyHandler
protected class ProxyHandler.ProxyResponseListener
extends org.eclipse.jetty.util.Callback.Completable
implements org.eclipse.jetty.client.Response.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTaskNested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.NestedNested classes/interfaces inherited from interface java.util.concurrent.Future
Future.StateNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.Task -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Callback
NOOPFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
ConstructorsConstructorDescriptionProxyResponseListener(org.eclipse.jetty.server.Request clientToProxyRequest, org.eclipse.jetty.client.Request proxyToServerRequest, org.eclipse.jetty.server.Response proxyToClientResponse, org.eclipse.jetty.util.Callback proxyToClientCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidonBegin(org.eclipse.jetty.client.Response serverToProxyResponse) voidonComplete(org.eclipse.jetty.client.Result result) voidonContent(org.eclipse.jetty.client.Response serverToProxyResponse, org.eclipse.jetty.io.Content.Chunk serverToProxyChunk, Runnable serverToProxyDemander) voidonHeaders(org.eclipse.jetty.client.Response serverToProxyResponse) voidonSuccess(org.eclipse.jetty.client.Response serverToProxyResponse) Methods inherited from class org.eclipse.jetty.util.Callback.Completable
compose, failed, from, getInvocationType, succeeded, withMethods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, exceptionNow, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, resultNow, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, state, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Callback
completeWithMethods inherited from interface org.eclipse.jetty.client.Response.AsyncContentListener
onContentSourceMethods inherited from interface org.eclipse.jetty.client.Response.Listener
onContent, onFailure, onHeader
-
Constructor Details
-
ProxyResponseListener
public ProxyResponseListener(org.eclipse.jetty.server.Request clientToProxyRequest, org.eclipse.jetty.client.Request proxyToServerRequest, org.eclipse.jetty.server.Response proxyToClientResponse, org.eclipse.jetty.util.Callback proxyToClientCallback)
-
-
Method Details
-
onBegin
public void onBegin(org.eclipse.jetty.client.Response serverToProxyResponse) - Specified by:
onBeginin interfaceorg.eclipse.jetty.client.Response.BeginListener- Specified by:
onBeginin interfaceorg.eclipse.jetty.client.Response.Listener
-
onHeaders
public void onHeaders(org.eclipse.jetty.client.Response serverToProxyResponse) - Specified by:
onHeadersin interfaceorg.eclipse.jetty.client.Response.HeadersListener- Specified by:
onHeadersin interfaceorg.eclipse.jetty.client.Response.Listener
-
onContent
public void onContent(org.eclipse.jetty.client.Response serverToProxyResponse, org.eclipse.jetty.io.Content.Chunk serverToProxyChunk, Runnable serverToProxyDemander) - Specified by:
onContentin interfaceorg.eclipse.jetty.client.Response.AsyncContentListener- Specified by:
onContentin interfaceorg.eclipse.jetty.client.Response.ContentListener
-
onSuccess
public void onSuccess(org.eclipse.jetty.client.Response serverToProxyResponse) - Specified by:
onSuccessin interfaceorg.eclipse.jetty.client.Response.Listener- Specified by:
onSuccessin interfaceorg.eclipse.jetty.client.Response.SuccessListener
-
onComplete
public void onComplete(org.eclipse.jetty.client.Result result) - Specified by:
onCompletein interfaceorg.eclipse.jetty.client.Response.CompleteListener- Specified by:
onCompletein interfaceorg.eclipse.jetty.client.Response.Listener
-