public abstract class AbstractResponseConsumer<Res>
extends org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.http.nio.util.SimpleInputBuffer |
buf |
protected org.apache.http.HttpResponse |
httpResponse |
| 构造器和说明 |
|---|
AbstractResponseConsumer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Res |
buildResult(org.apache.http.protocol.HttpContext context) |
HttpResponse |
getFcHttpResponse()
Convert apache HttpResponse to FC HttpResponse
|
protected void |
onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioControl) |
protected void |
onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType) |
protected void |
onResponseReceived(org.apache.http.HttpResponse response) |
protected abstract Res |
parseResult() |
protected void |
releaseResources() |
protected volatile org.apache.http.HttpResponse httpResponse
protected volatile org.apache.http.nio.util.SimpleInputBuffer buf
protected Res buildResult(org.apache.http.protocol.HttpContext context) throws Exception
protected void onResponseReceived(org.apache.http.HttpResponse response)
throws IOException
onResponseReceived 在类中 org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionprotected void onEntityEnclosed(org.apache.http.HttpEntity entity,
org.apache.http.entity.ContentType contentType)
throws IOException
onEntityEnclosed 在类中 org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionpublic HttpResponse getFcHttpResponse() throws Exception
Exceptionprotected void onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioControl)
throws IOException
onContentReceived 在类中 org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>IOExceptionprotected void releaseResources()
releaseResources 在类中 org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<Res>Copyright © 2019. All Rights Reserved.