java.util.EventListener
, javax.servlet.ReadListener
protected class AsyncMiddleManServlet.ProxyReader
extends org.eclipse.jetty.util.IteratingCallback
implements javax.servlet.ReadListener
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Nested
Modifier | Constructor | Description |
---|---|---|
protected |
ProxyReader(javax.servlet.http.HttpServletRequest clientRequest,
javax.servlet.http.HttpServletResponse proxyResponse,
Request proxyRequest,
DeferredContentProvider provider) |
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() |
asPreferred, getInvocationType, getInvocationType, invokeNonBlocking, invokePreferNonBlocking, invokePreferred, isNonBlockingInvocation
protected ProxyReader(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Request proxyRequest, DeferredContentProvider provider)
public void onDataAvailable() throws java.io.IOException
onDataAvailable
in interface javax.servlet.ReadListener
java.io.IOException
public void onAllDataRead() throws java.io.IOException
onAllDataRead
in interface javax.servlet.ReadListener
java.io.IOException
public void onError(java.lang.Throwable t)
onError
in interface javax.servlet.ReadListener
protected org.eclipse.jetty.util.IteratingCallback.Action process() throws java.lang.Exception
process
in class org.eclipse.jetty.util.IteratingCallback
java.lang.Exception
protected void onCompleteFailure(java.lang.Throwable x)
onCompleteFailure
in class org.eclipse.jetty.util.IteratingCallback
Copyright © 1995–2018 Webtide. All rights reserved.