java.util.EventListener
, javax.servlet.ReadListener
, Callback
, Invocable
protected class AsyncProxyServlet.StreamReader extends IteratingCallback implements javax.servlet.ReadListener
Callback.Completable, Callback.Nested
Invocable.InvocationType
IteratingCallback.Action
__nonBlocking
Modifier | Constructor | Description |
---|---|---|
protected |
StreamReader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Request proxyRequest,
DeferredContentProvider provider) |
Modifier and Type | Method | Description |
---|---|---|
void |
failed(java.lang.Throwable x) |
|
void |
onAllDataRead() |
|
void |
onDataAvailable() |
|
void |
onError(java.lang.Throwable t) |
|
protected void |
onRequestContent(javax.servlet.http.HttpServletRequest request,
Request proxyRequest,
DeferredContentProvider provider,
byte[] buffer,
int offset,
int length,
Callback callback) |
|
protected IteratingCallback.Action |
process() |
getInvocationType, getInvocationType, invokeNonBlocking, isNonBlockingInvocation
close, isClosed, isFailed, isSucceeded, iterate, onCompleteFailure, onCompleteSuccess, reset, succeeded, toString
protected StreamReader(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, 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 IteratingCallback.Action process() throws java.lang.Exception
process
in class IteratingCallback
java.lang.Exception
protected void onRequestContent(javax.servlet.http.HttpServletRequest request, Request proxyRequest, DeferredContentProvider provider, byte[] buffer, int offset, int length, Callback callback)
public void failed(java.lang.Throwable x)
failed
in interface Callback
failed
in class IteratingCallback
Copyright © 1995–2018 Webtide. All rights reserved.