public abstract class AbstractBinPushConsumer extends AbstractBinDataConsumer implements AsyncPushConsumer
Constructor and Description |
---|
AbstractBinPushConsumer() |
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 response processing.
|
capacityIncrement, completed, consume, data, streamEnd, updateCapacity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consume, streamEnd, updateCapacity
releaseResources
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.