383 * |
383 * |
384 * @param <T> the response body type |
384 * @param <T> the response body type |
385 * @param req the request |
385 * @param req the request |
386 * @param responseBodyHandler the response body handler |
386 * @param responseBodyHandler the response body handler |
387 * @return the response body |
387 * @return the response body |
388 * @throws java.io.IOException if an I/O error occurs when sending or receiving |
388 * @throws IOException if an I/O error occurs when sending or receiving |
389 * @throws InterruptedException if the operation is interrupted |
389 * @throws InterruptedException if the operation is interrupted |
390 * @throws IllegalArgumentException if the request method is not supported |
390 * @throws IllegalArgumentException if the request method is not supported |
391 * @throws SecurityException If a security manager has been installed |
391 * @throws SecurityException If a security manager has been installed |
392 * and it denies {@link java.net.URLPermission access} to the |
392 * and it denies {@link java.net.URLPermission access} to the |
393 * URL in the given request, or proxy if one is configured. |
393 * URL in the given request, or proxy if one is configured. |
400 |
400 |
401 /** |
401 /** |
402 * Sends the given request asynchronously using this client and the given |
402 * Sends the given request asynchronously using this client and the given |
403 * response handler. |
403 * response handler. |
404 * |
404 * |
405 * <p> The returned completable future is completed with a SecurityException |
405 * <p> The returned completable future completes exceptionally with: |
406 * if a security manager has been installed and it denies {@link |
406 * <ul> |
407 * java.net.URLPermission access} to the URI in the given request, or proxy |
407 * <li>{@link IOException} - if an I/O error occurs when sending or receiving</li> |
408 * if one is configured. See HttpRequest for further information about |
408 * <li>{@link IllegalArgumentException} - if the request method is not supported</li> |
409 * <a href="HttpRequest.html#securitychecks">security checks</a>. |
409 * <li>{@link SecurityException} - If a security manager has been installed |
|
410 * and it denies {@link java.net.URLPermission access} to the |
|
411 * URL in the given request, or proxy if one is configured. |
|
412 * See HttpRequest for further information about |
|
413 * <a href="HttpRequest.html#securitychecks">security checks</a>.</li> |
|
414 * </ul> |
410 * |
415 * |
411 * @param <T> the response body type |
416 * @param <T> the response body type |
412 * @param req the request |
417 * @param req the request |
413 * @param responseBodyHandler the response body handler |
418 * @param responseBodyHandler the response body handler |
414 * @return a {@code CompletableFuture<HttpResponse<T>>} |
419 * @return a {@code CompletableFuture<HttpResponse<T>>} |
418 |
423 |
419 /** |
424 /** |
420 * Sends the given request asynchronously using this client and the given |
425 * Sends the given request asynchronously using this client and the given |
421 * multi response handler. |
426 * multi response handler. |
422 * |
427 * |
423 * <p> The returned completable future is completed with a SecurityException |
428 * <p> The returned completable future completes exceptionally with: |
424 * if a security manager has been installed and it denies {@link |
429 * <ul> |
425 * java.net.URLPermission access} to the URI in the given request, or proxy |
430 * <li>{@link IOException} - if an I/O error occurs when sending or receiving</li> |
426 * if one is configured. See HttpRequest for further information about |
431 * <li>{@link IllegalArgumentException} - if the request method is not supported</li> |
427 * <a href="HttpRequest.html#securitychecks">security checks</a>. |
432 * <li>{@link SecurityException} - If a security manager has been installed |
|
433 * and it denies {@link java.net.URLPermission access} to the |
|
434 * URL in the given request, or proxy if one is configured. |
|
435 * See HttpRequest for further information about |
|
436 * <a href="HttpRequest.html#securitychecks">security checks</a>.</li> |
|
437 * </ul> |
428 * |
438 * |
429 * @param <U> a type representing the aggregated results |
439 * @param <U> a type representing the aggregated results |
430 * @param <T> a type representing all of the response bodies |
440 * @param <T> a type representing all of the response bodies |
431 * @param req the request |
441 * @param req the request |
432 * @param multiSubscriber the multiSubscriber for the request |
442 * @param multiSubscriber the multiSubscriber for the request |