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, updateCapacity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consume, streamEnd, updateCapacity
releaseResources
public 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.HttpException
IOException
public final void consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, IOException
consumePromise
in interface AsyncPushConsumer
HttpException
IOException
public void failed(Exception cause)
failed
in interface AsyncPushConsumer
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.