Interface Response.ContentSourceListener
- All Superinterfaces:
EventListener, Response.ResponseListener
- All Known Subinterfaces:
Response.AsyncContentListener, Response.ContentListener, Response.Listener
- All Known Implementing Classes:
AsyncMiddleManServlet.ProxyResponseListener, AsyncMiddleManServlet.ProxyResponseListener, AsyncMiddleManServlet.ProxyResponseListener, BufferingResponseListener, CompletableResponseListener, ContinueProtocolHandler.ContinueListener, FutureResponseListener, InputStreamResponseListener, PathResponseListener, ProxyHandler.ProxyResponseListener, ProxyServlet.ProxyResponseListener, ProxyServlet.ProxyResponseListener, ProxyServlet.ProxyResponseListener, RedirectProtocolHandler
- Enclosing interface:
Response
Asynchronous listener for the response content events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonContentSource(Response response, Content.Source contentSource) Callback method invoked when all the response headers have been received and parsed.
-
Method Details
-
onContentSource
Callback 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.- Parameters:
response- the response containing the response line data and the headerscontentSource- theContent.Sourcethat must be driven to read the data
-