diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java index 0788a400680..fb068333dff 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java @@ -309,6 +309,9 @@ public class HttpClient extends ContainerLifeCycle * * @param uri the URI to GET * @return the {@link ContentResponse} for the request + * @throws InterruptedException if send threading has been interrupted + * @throws ExecutionException the execution failed + * @throws TimeoutException the send timed out * @see #GET(URI) */ public ContentResponse GET(String uri) throws InterruptedException, ExecutionException, TimeoutException @@ -321,6 +324,9 @@ public class HttpClient extends ContainerLifeCycle * * @param uri the URI to GET * @return the {@link ContentResponse} for the request + * @throws InterruptedException if send threading has been interrupted + * @throws ExecutionException the execution failed + * @throws TimeoutException the send timed out * @see #newRequest(URI) */ public ContentResponse GET(URI uri) throws InterruptedException, ExecutionException, TimeoutException @@ -334,6 +340,9 @@ public class HttpClient extends ContainerLifeCycle * @param uri the URI to POST * @param fields the fields composing the form name/value pairs * @return the {@link ContentResponse} for the request + * @throws InterruptedException if send threading has been interrupted + * @throws ExecutionException the execution failed + * @throws TimeoutException the send timed out */ public ContentResponse FORM(String uri, Fields fields) throws InterruptedException, ExecutionException, TimeoutException { @@ -346,6 +355,9 @@ public class HttpClient extends ContainerLifeCycle * @param uri the URI to POST * @param fields the fields composing the form name/value pairs * @return the {@link ContentResponse} for the request + * @throws InterruptedException if send threading has been interrupted + * @throws ExecutionException the execution failed + * @throws TimeoutException the send timed out */ public ContentResponse FORM(URI uri, Fields fields) throws InterruptedException, ExecutionException, TimeoutException { diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpContent.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpContent.java index c8518f922e5..58b16bb4ad3 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpContent.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpContent.java @@ -42,7 +42,7 @@ import org.eclipse.jetty.util.log.Logger; * | | | | | | | | | | * +---+ +---+ +---+ +---+ +---+ * ^ ^ ^ ^ - * | | --> advance() | | + * | | --> advance() | | * | | last | * | | | * before | after diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConversation.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConversation.java index 2a5d0ae8af9..327d8aca7e3 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConversation.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConversation.java @@ -41,42 +41,42 @@ public class HttpConversation extends AttributesMap * This list changes as the conversation proceeds, as follows: *
    *
  1. - * request R1 send => conversation.updateResponseListeners(null) + * request R1 send => conversation.updateResponseListeners(null) * *
  2. *
  3. - * response R1 arrived, 401 => conversation.updateResponseListeners(AuthenticationProtocolHandler.listener) + * response R1 arrived, 401 => conversation.updateResponseListeners(AuthenticationProtocolHandler.listener) * *
  4. *
  5. - * request R2 send => conversation.updateResponseListeners(null) + * request R2 send => conversation.updateResponseListeners(null) * *
  6. *
  7. - * response R2 arrived, 302 => conversation.updateResponseListeners(RedirectProtocolHandler.listener) + * response R2 arrived, 302 => conversation.updateResponseListeners(RedirectProtocolHandler.listener) * *
  8. *
  9. - * request R3 send => conversation.updateResponseListeners(null) + * request R3 send => conversation.updateResponseListeners(null) * *
  10. *
  11. - * response R3 arrived, 200 => conversation.updateResponseListeners(null) + * response R3 arrived, 200 => conversation.updateResponseListeners(null) *