public abstract class AbstractCharResponseConsumer<T>
extends org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>
| Constructor and Description |
|---|
AbstractCharResponseConsumer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
buildResult() |
protected void |
completed() |
void |
consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback) |
void |
failed(Exception cause) |
protected abstract void |
start(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.ContentType contentType) |
capacity, consume, data, setCharset, streamEnd, updateCapacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected abstract void start(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.ContentType contentType)
throws org.apache.hc.core5.http.HttpException,
IOException
org.apache.hc.core5.http.HttpExceptionIOExceptionprotected abstract T buildResult() throws IOException
IOExceptionpublic final void consumeResponse(org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.concurrent.FutureCallback<T> resultCallback)
throws org.apache.hc.core5.http.HttpException,
IOException
consumeResponse in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<T>org.apache.hc.core5.http.HttpExceptionIOExceptionprotected final void completed()
throws IOException
completed in class org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumerIOExceptionCopyright © 1999–2018 The Apache Software Foundation. All rights reserved.