src/java.net.http/share/classes/java/net/http/HttpClient.java
branchhttp-client-branch
changeset 56280 2baa59cfe37b
parent 56278 8bc5fb608e30
child 56281 7fdd89dabab2
equal deleted inserted replaced
56278:8bc5fb608e30 56280:2baa59cfe37b
   303          *
   303          *
   304          * @implNote
   304          * @implNote
   305          * If this method is not invoked prior to {@linkplain #build() building},
   305          * If this method is not invoked prior to {@linkplain #build() building},
   306          * then newly built clients will use the {@linkplain
   306          * then newly built clients will use the {@linkplain
   307          * ProxySelector#getDefault() default proxy selector}, which is usually
   307          * ProxySelector#getDefault() default proxy selector}, which is usually
   308          * adequate for client applications. This default behavior can be turned
   308          * adequate for client applications. The default proxy selector supports
   309          * off by supplying an explicit proxy selector to this method, such as
   309          * a set of system properties</a> related to
   310          * {@link #NO_PROXY} or one returned by {@link
   310          * <a href="{@docRoot}/java.base/java/net/doc-files/net-properties.html#Proxies">
   311          * ProxySelector#of(InetSocketAddress) ProxySelector::of}, before
   311          * proxy settings</a>. This default behavior can be disabled by
   312          * {@linkplain #build() building}.
   312          * supplying an explicit proxy selector, such as {@link #NO_PROXY} or
   313          *
   313          * one returned by {@link ProxySelector#of(InetSocketAddress)
   314          * @param selector the ProxySelector
   314          * ProxySelector::of}, before {@linkplain #build() building}.
   315          * @return this builder
   315          *
   316          */
   316          * @param proxySelector the ProxySelector
   317         public Builder proxy(ProxySelector selector);
   317          * @return this builder
       
   318          */
       
   319         public Builder proxy(ProxySelector proxySelector);
   318 
   320 
   319         /**
   321         /**
   320          * Sets an authenticator to use for HTTP authentication.
   322          * Sets an authenticator to use for HTTP authentication.
   321          *
   323          *
   322          * @param a the Authenticator
   324          * @param authenticator the Authenticator
   323          * @return this builder
   325          * @return this builder
   324          */
   326          */
   325         public Builder authenticator(Authenticator a);
   327         public Builder authenticator(Authenticator authenticator);
   326 
   328 
   327         /**
   329         /**
   328          * Returns a new {@link HttpClient} built from the current state of this
   330          * Returns a new {@link HttpClient} built from the current state of this
   329          * builder.
   331          * builder.
   330          *
   332          *