Package org.eclipse.jetty.client.api
Interface Response.AsyncContentListener
-
- All Superinterfaces:
java.util.EventListener
,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
AsyncMiddleManServlet.ProxyResponseListener
,BufferingResponseListener
,ContinueProtocolHandler.ContinueListener
,FutureResponseListener
,InputStreamResponseListener
,ProxyServlet.ProxyResponseListener
,RedirectProtocolHandler
,Response.Listener.Adapter
- Enclosing interface:
- Response
public static interface Response.AsyncContentListener extends Response.ResponseListener
Asynchronous listener for the response content events.- See Also:
Response.DemandedContentListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onContent(Response response, java.nio.ByteBuffer content, Callback callback)
Callback method invoked when the response content has been received, parsed and there is demand.
-
-
-
Method Detail
-
onContent
void onContent(Response response, java.nio.ByteBuffer content, Callback callback)
Callback method invoked when the response content has been received, parsed and there is demand. Thecallback
object should be succeeded to signal that thecontent
buffer has been consumed and to demand more content.- Parameters:
response
- 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 content
-
-