From 7584488702d156f6d049dbe8e74ecc30ee300e2f Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 21 Aug 2014 09:43:35 +1000 Subject: [PATCH] javadoc --- .../main/java/org/eclipse/jetty/client/api/Response.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/api/Response.java b/jetty-client/src/main/java/org/eclipse/jetty/client/api/Response.java index 1f92b1eb74d..feacacd1eb5 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/api/Response.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/api/Response.java @@ -147,6 +147,13 @@ public interface Response public interface AsyncContentListener extends ResponseListener { + /** + * Callback method invoked asynchronously when the response content has been received. + * + * @param response the response containing the response line data and the headers + * @param content the content bytes received + * @param callback the callback to call when the content is consumed. + */ public void onContent(Response response, ByteBuffer content, Callback callback); }