Module org.eclipse.jetty.proxy
Package org.eclipse.jetty.proxy
Class AsyncMiddleManServlet.ProxyReader
- java.lang.Object
-
- org.eclipse.jetty.util.IteratingCallback
-
- org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyReader
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ReadListener
,org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.thread.Invocable
- Enclosing class:
- AsyncMiddleManServlet
protected class AsyncMiddleManServlet.ProxyReader extends org.eclipse.jetty.util.IteratingCallback implements javax.servlet.ReadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.util.IteratingCallback.Action
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProxyReader(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, org.eclipse.jetty.client.api.Request proxyRequest, org.eclipse.jetty.client.util.AsyncRequestContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAllDataRead()
protected void
onCompleteFailure(java.lang.Throwable x)
void
onDataAvailable()
void
onError(java.lang.Throwable t)
protected org.eclipse.jetty.util.IteratingCallback.Action
process()
-
Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, onCompleteSuccess, reset, succeeded, toString
-
-
-
-
Method Detail
-
onDataAvailable
public void onDataAvailable()
- Specified by:
onDataAvailable
in interfacejavax.servlet.ReadListener
-
onAllDataRead
public void onAllDataRead() throws java.io.IOException
- Specified by:
onAllDataRead
in interfacejavax.servlet.ReadListener
- Throws:
java.io.IOException
-
onError
public void onError(java.lang.Throwable t)
- Specified by:
onError
in interfacejavax.servlet.ReadListener
-
process
protected org.eclipse.jetty.util.IteratingCallback.Action process() throws java.lang.Exception
- Specified by:
process
in classorg.eclipse.jetty.util.IteratingCallback
- Throws:
java.lang.Exception
-
onCompleteFailure
protected void onCompleteFailure(java.lang.Throwable x)
- Overrides:
onCompleteFailure
in classorg.eclipse.jetty.util.IteratingCallback
-
-