public abstract class AbstractCharPushConsumer extends AbstractCharDataConsumer implements AsyncPushConsumer
DEF_BUF_SIZE| Modifier | Constructor and Description |
|---|---|
|
AbstractCharPushConsumer() |
protected |
AbstractCharPushConsumer(int bufSize,
CharCodingConfig charCodingConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumePromise(HttpRequest promise,
HttpResponse response,
EntityDetails entityDetails,
HttpContext context) |
void |
failed(Exception cause) |
protected abstract void |
start(HttpRequest promise,
HttpResponse response,
ContentType contentType)
Triggered to signal the beginning of data processing.
|
capacityIncrement, completed, consume, data, setCharset, streamEnd, updateCapacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsume, streamEnd, updateCapacityreleaseResourcespublic AbstractCharPushConsumer()
protected AbstractCharPushConsumer(int bufSize,
CharCodingConfig charCodingConfig)
protected abstract void start(HttpRequest promise, HttpResponse response, ContentType contentType) throws HttpException, IOException
response - the response message headcontentType - the content type of the response body,
or null if the response does not enclose a response entity.HttpExceptionIOExceptionpublic final void consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, IOException
consumePromise in interface AsyncPushConsumerHttpExceptionIOExceptionpublic void failed(Exception cause)
failed in interface AsyncPushConsumerCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.