public static interface Response.ContentListener extends Response.AsyncContentListener
Response.AsyncContentListener| Modifier and Type | Method and Description |
|---|---|
void |
onContent(Response response,
ByteBuffer content)
Callback method invoked when the response content has been received, parsed and there is demand.
|
default void |
onContent(Response response,
ByteBuffer content,
Callback callback)
Callback method invoked when the response content has been received, parsed and there is demand.
|
onContentonBeforeContentvoid onContent(Response response, ByteBuffer content)
content buffer
must be consumed (or copied) before returning from this method.response - the response containing the response line data and the headerscontent - the content bytes receiveddefault void onContent(Response response, ByteBuffer content, Callback callback)
Response.AsyncContentListenercallback object should be succeeded to signal that the
content buffer has been consumed and to demand more content.onContent in interface Response.AsyncContentListenerresponse - the response containing the response line data and the headerscontent - the content bytes receivedcallback - the callback to call when the content is consumed and to demand more contentCopyright © 2010 - 2020 Adobe. All Rights Reserved