Package org.eclipse.jetty.proxy
Class AsyncMiddleManServlet.ProxyResponseListener
- java.lang.Object
-
- org.eclipse.jetty.client.api.Response.Listener.Adapter
-
- org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyResponseListener
-
- All Implemented Interfaces:
java.util.EventListener,Response.AsyncContentListener,Response.BeginListener,Response.CompleteListener,Response.ContentListener,Response.DemandedContentListener,Response.FailureListener,Response.HeaderListener,Response.HeadersListener,Response.Listener,Response.ResponseListener,Response.SuccessListener,Callback,Invocable
- Enclosing class:
- AsyncMiddleManServlet
protected class AsyncMiddleManServlet.ProxyResponseListener extends Response.Listener.Adapter implements Callback
-
-
Nested Class Summary
-
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.thread.Invocable
Invocable.InvocationType
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Response.Listener
Response.Listener.Adapter
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProxyResponseListener(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailed(java.lang.Throwable failure)voidonBegin(Response serverResponse)voidonComplete(Result result)voidonContent(Response serverResponse, java.nio.ByteBuffer content, Callback callback)voidonHeaders(Response serverResponse)voidonSuccess(Response serverResponse)voidsucceeded()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.AsyncContentListener
onContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.DemandedContentListener
onBeforeContent
-
Methods inherited from interface org.eclipse.jetty.client.api.Response.Listener
onContent, onFailure, onHeader
-
-
-
-
Method Detail
-
onBegin
public void onBegin(Response serverResponse)
- Specified by:
onBeginin interfaceResponse.BeginListener- Specified by:
onBeginin interfaceResponse.Listener
-
onHeaders
public void onHeaders(Response serverResponse)
- Specified by:
onHeadersin interfaceResponse.HeadersListener- Specified by:
onHeadersin interfaceResponse.Listener
-
onContent
public void onContent(Response serverResponse, java.nio.ByteBuffer content, Callback callback)
- Specified by:
onContentin interfaceResponse.AsyncContentListener- Specified by:
onContentin interfaceResponse.ContentListener
-
onSuccess
public void onSuccess(Response serverResponse)
- Specified by:
onSuccessin interfaceResponse.Listener- Specified by:
onSuccessin interfaceResponse.SuccessListener
-
onComplete
public void onComplete(Result result)
- Specified by:
onCompletein interfaceResponse.CompleteListener- Specified by:
onCompletein interfaceResponse.Listener
-
-