protected class AsyncProxyServlet.StreamReader extends Object implements ReadListener, Callback
Callback.Adapter
Modifier | Constructor and Description |
---|---|
protected |
AsyncProxyServlet.StreamReader(Request proxyRequest,
HttpServletRequest request,
DeferredContentProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
void |
onAllDataRead() |
void |
onDataAvailable() |
void |
onError(Throwable x) |
protected void |
onRequestContent(Request proxyRequest,
HttpServletRequest request,
DeferredContentProvider provider,
byte[] buffer,
int offset,
int length,
Callback callback) |
void |
succeeded()
Callback invoked when the operation completes.
|
protected AsyncProxyServlet.StreamReader(Request proxyRequest, HttpServletRequest request, DeferredContentProvider provider)
public void onDataAvailable() throws IOException
onDataAvailable
in interface ReadListener
IOException
protected void onRequestContent(Request proxyRequest, HttpServletRequest request, DeferredContentProvider provider, byte[] buffer, int offset, int length, Callback callback)
public void onAllDataRead() throws IOException
onAllDataRead
in interface ReadListener
IOException
public void onError(Throwable x)
onError
in interface ReadListener
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
Callback.failed(Throwable)
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.