public abstract class AbstractCharPushConsumer
extends org.apache.hc.core5.http.nio.entity.AbstractCharDataConsumer
implements org.apache.hc.core5.http.nio.AsyncPushConsumer
Modifier | Constructor and Description |
---|---|
|
AbstractCharPushConsumer() |
protected |
AbstractCharPushConsumer(int bufSize,
org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig) |
Modifier and Type | Method and Description |
---|---|
void |
consumePromise(org.apache.hc.core5.http.HttpRequest promise,
org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
failed(Exception cause) |
protected abstract void |
start(org.apache.hc.core5.http.HttpRequest promise,
org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.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
public AbstractCharPushConsumer()
protected AbstractCharPushConsumer(int bufSize, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig)
protected abstract void start(org.apache.hc.core5.http.HttpRequest promise, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.ContentType contentType) throws org.apache.hc.core5.http.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.org.apache.hc.core5.http.HttpException
IOException
public final void consumePromise(org.apache.hc.core5.http.HttpRequest promise, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
consumePromise
in interface org.apache.hc.core5.http.nio.AsyncPushConsumer
org.apache.hc.core5.http.HttpException
IOException
public void failed(Exception cause)
failed
in interface org.apache.hc.core5.http.nio.AsyncPushConsumer
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.