public class HttpResponseConsumer extends org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Response>
| Constructor and Description |
|---|
HttpResponseConsumer(ResponseValidator validator,
Set<Integer> stopCodes,
boolean compressed,
HttpFetcherRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected BaseResponse |
buildResult(org.apache.http.protocol.HttpContext context) |
protected void |
onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl) |
protected void |
onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType) |
protected void |
onResponseReceived(org.apache.http.HttpResponse httpResponse) |
protected void |
releaseResources() |
public HttpResponseConsumer(ResponseValidator validator, Set<Integer> stopCodes, boolean compressed, HttpFetcherRequest request)
protected void onResponseReceived(org.apache.http.HttpResponse httpResponse)
onResponseReceived in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Response>protected void onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl)
throws IOException
onContentReceived in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Response>IOExceptionprotected void onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType)
throws IOException
onEntityEnclosed in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Response>IOExceptionprotected BaseResponse buildResult(org.apache.http.protocol.HttpContext context) throws Exception
protected void releaseResources()
releaseResources in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Response>Copyright © 2018. All rights reserved.