public class SequenceInputStreamResponseHandler extends Object implements HttpResponseHandler<InputStream,InputStream>
Constructor and Description |
---|
SequenceInputStreamResponseHandler() |
Modifier and Type | Method and Description |
---|---|
ClientResponse<InputStream> |
done(ClientResponse<InputStream> clientResponse) |
void |
exceptionCaught(ClientResponse<InputStream> clientResponse,
Throwable e) |
long |
getByteCount() |
ClientResponse<InputStream> |
handleChunk(ClientResponse<InputStream> clientResponse,
org.jboss.netty.handler.codec.http.HttpChunk chunk) |
ClientResponse<InputStream> |
handleResponse(org.jboss.netty.handler.codec.http.HttpResponse response)
Handles the initial HttpResponse object that comes back from Netty.
|
public ClientResponse<InputStream> handleResponse(org.jboss.netty.handler.codec.http.HttpResponse response)
HttpResponseHandler
handleResponse
in interface HttpResponseHandler<InputStream,InputStream>
response
- - response from Nettypublic ClientResponse<InputStream> handleChunk(ClientResponse<InputStream> clientResponse, org.jboss.netty.handler.codec.http.HttpChunk chunk)
handleChunk
in interface HttpResponseHandler<InputStream,InputStream>
public ClientResponse<InputStream> done(ClientResponse<InputStream> clientResponse)
done
in interface HttpResponseHandler<InputStream,InputStream>
public void exceptionCaught(ClientResponse<InputStream> clientResponse, Throwable e)
exceptionCaught
in interface HttpResponseHandler<InputStream,InputStream>
public final long getByteCount()
Copyright © 2011–2018. All rights reserved.