Module org.eclipse.jetty.client
Package org.eclipse.jetty.client
Interface Response.AsyncContentListener
- All Superinterfaces:
EventListener,Response.ContentSourceListener,Response.ResponseListener
- All Known Subinterfaces:
Response.ContentListener,Response.Listener
- All Known Implementing Classes:
BufferingResponseListener,CompletableResponseListener,ContinueProtocolHandler.ContinueListener,FutureResponseListener,InputStreamResponseListener,RedirectProtocolHandler
- Enclosing interface:
Response
Asynchronous listener for the response content events.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault voidonContentSource(Response response, org.eclipse.jetty.io.Content.Source contentSource) Callback method invoked when all the response headers have been received and parsed.
-
Method Details
-
onContent
-
onContentSource
Description copied from interface:Response.ContentSourceListenerCallback method invoked when all the response headers have been received and parsed. It is responsible for driving thecontentSourceinstance with a read/demand loop. Note that this is not invoked for interim statuses.- Specified by:
onContentSourcein interfaceResponse.ContentSourceListener- Parameters:
response- the response containing the response line data and the headerscontentSource- theContent.Sourcethat must be driven to read the data
-