protected class AsyncProxyServlet.StreamReader extends IteratingCallback implements ReadListener
IteratingCallback.ActionCallback.Completable, Callback.NestedInvocable.InvocationType__nonBlocking| Modifier | Constructor and Description |
|---|---|
protected |
StreamReader(HttpServletRequest request,
HttpServletResponse response,
Request proxyRequest,
DeferredContentProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Throwable x) |
void |
onAllDataRead() |
void |
onDataAvailable() |
void |
onError(Throwable t) |
protected void |
onRequestContent(HttpServletRequest request,
Request proxyRequest,
DeferredContentProvider provider,
byte[] buffer,
int offset,
int length,
Callback callback) |
protected IteratingCallback.Action |
process() |
close, isClosed, isFailed, isSucceeded, iterate, onCompleteFailure, onCompleteSuccess, reset, succeeded, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasPreferred, getInvocationType, getInvocationType, invokeNonBlocking, invokePreferNonBlocking, invokePreferred, isNonBlockingInvocationprotected StreamReader(HttpServletRequest request, HttpServletResponse response, Request proxyRequest, DeferredContentProvider provider)
public void onDataAvailable()
throws IOException
onDataAvailable in interface ReadListenerIOExceptionpublic void onAllDataRead()
throws IOException
onAllDataRead in interface ReadListenerIOExceptionpublic void onError(Throwable t)
onError in interface ReadListenerprotected IteratingCallback.Action process() throws Exception
process in class IteratingCallbackExceptionprotected void onRequestContent(HttpServletRequest request, Request proxyRequest, DeferredContentProvider provider, byte[] buffer, int offset, int length, Callback callback)
public void failed(Throwable x)
failed in interface Callbackfailed in class IteratingCallbackCopyright © 1995–2017 Webtide. All rights reserved.