Package org.eclipse.jetty.client.api
Interface Response.AsyncContentListener
-
- All Superinterfaces:
EventListener,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
BufferingResponseListener,ContinueProtocolHandler.ContinueListener,FutureResponseListener,InputStreamResponseListener,RedirectProtocolHandler,Response.Listener.Adapter
- Enclosing interface:
- Response
public static interface Response.AsyncContentListener extends Response.ResponseListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonContent(Response response, ByteBuffer content, org.eclipse.jetty.util.Callback callback)Callback method invoked asynchronously when the response content has been received.
-
-
-
Method Detail
-
onContent
void onContent(Response response, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
Callback method invoked asynchronously when the response content has been received.- 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.
-
-