src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpClient.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 55763 634d8e14c172
child 55809 b8fefba89929
equal deleted inserted replaced
55763:634d8e14c172 55764:34d7cc00f87a
   370      * @param <T> the response body type
   370      * @param <T> the response body type
   371      * @param req the request
   371      * @param req the request
   372      * @param responseBodyHandler the response body handler
   372      * @param responseBodyHandler the response body handler
   373      * @return the response body
   373      * @return the response body
   374      * @throws java.io.IOException if an I/O error occurs when sending or receiving
   374      * @throws java.io.IOException if an I/O error occurs when sending or receiving
   375      * @throws java.lang.InterruptedException if the operation is interrupted
   375      * @throws InterruptedException if the operation is interrupted
       
   376      * @throws IllegalArgumentException if the request method is not supported
   376      * @throws SecurityException If a security manager has been installed
   377      * @throws SecurityException If a security manager has been installed
   377      *          and it denies {@link java.net.URLPermission access} to the
   378      *          and it denies {@link java.net.URLPermission access} to the
   378      *          URL in the given request, or proxy if one is configured.
   379      *          URL in the given request, or proxy if one is configured.
   379      *          See HttpRequest for further information about
   380      *          See HttpRequest for further information about
   380      *          <a href="HttpRequest.html#securitychecks">security checks</a>.
   381      *          <a href="HttpRequest.html#securitychecks">security checks</a>.
   457      *         the listener
   458      *         the listener
   458      *
   459      *
   459      * @return a builder of {@code WebSocket} instances
   460      * @return a builder of {@code WebSocket} instances
   460      * @throws UnsupportedOperationException
   461      * @throws UnsupportedOperationException
   461      *         if this {@code HttpClient} does not provide WebSocket support
   462      *         if this {@code HttpClient} does not provide WebSocket support
       
   463      * @throws IllegalArgumentException if the given URI is not a valid WebSocket URI
   462      */
   464      */
   463     public WebSocket.Builder newWebSocketBuilder(URI uri,
   465     public WebSocket.Builder newWebSocketBuilder(URI uri,
   464                                                  WebSocket.Listener listener)
   466                                                  WebSocket.Listener listener)
   465     {
   467     {
   466         throw new UnsupportedOperationException();
   468         throw new UnsupportedOperationException();