public class FutureStreamResponseImpl extends FutureResponseImpl implements StreamResponse
FutureResponse which wraps a StreamResponse and so provide an async way to get notified about ready responsesFutureResponse.ResponseListenerresponseDISCONNECT| Constructor and Description |
|---|
FutureStreamResponseImpl() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getStream()
Return the stream which needs to get written to the remote peer.
|
void |
setResponse(Response response)
Set the
StreamResponse to wrap. |
addListener, checkReady, getLines, getRetCode, isEndSession, isReady, removeListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLines, getRetCode, isEndSessionpublic void setResponse(Response response)
StreamResponse to wrap. If a non StreamResponse is set this implementation will throw an IllegalArgumentExceptionsetResponse in class FutureResponseImplpublic InputStream getStream()
StreamResponseInputStream on every call. So once it is consumed there is no way to re-process it.getStream in interface StreamResponseCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.