- All Superinterfaces:
EventListener,Response.AsyncContentListener,Response.ContentSourceListener,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
BufferingResponseListener,CompletableResponseListener,ContinueProtocolHandler.ContinueListener,FutureResponseListener,InputStreamResponseListener,RedirectProtocolHandler
- Enclosing interface:
Response
Synchronous listener for the response content events.
- See Also:
-
Method Summary
Methods inherited from interface org.eclipse.jetty.client.Response.AsyncContentListener
onContentSource
-
Method Details
-
onContent
Callback method invoked when the response content has been received, parsed and there is demand. This method may be invoked multiple times, and thecontentbuffer must be consumed (or copied) before returning from this method.- Parameters:
response- the response containing the response line data and the headerscontent- the content bytes received
-
onContent
default void onContent(Response response, org.eclipse.jetty.io.Content.Chunk chunk, Runnable demander) - Specified by:
onContentin interfaceResponse.AsyncContentListener
-