protected class AsyncProxyServlet.StreamReader extends IteratingCallback implements ReadListener
IteratingCallback.Action
Callback.Adapter, Callback.Nested, Callback.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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isNonBlocking
protected StreamReader(HttpServletRequest request, HttpServletResponse response, Request proxyRequest, DeferredContentProvider provider)
public void onDataAvailable() throws IOException
onDataAvailable
in interface ReadListener
IOException
public void onAllDataRead() throws IOException
onAllDataRead
in interface ReadListener
IOException
public void onError(Throwable t)
onError
in interface ReadListener
protected IteratingCallback.Action process() throws Exception
process
in class IteratingCallback
Exception
protected void onRequestContent(HttpServletRequest request, Request proxyRequest, DeferredContentProvider provider, byte[] buffer, int offset, int length, Callback callback)
public void failed(Throwable x)
failed
in interface Callback
failed
in class IteratingCallback
Copyright © 1995–2017 Webtide. All rights reserved.