| Modifier and Type | Field and Description |
|---|---|
| pack-priv Authenticator | |
| pack-priv Duration | |
| pack-priv CookieHandler | |
| pack-priv Executor | |
| pack-priv HttpClient. | |
| pack-priv InetAddress | |
| pack-priv int | |
| pack-priv ProxySelector | |
| pack-priv SSLContext | |
| pack-priv SSLParameters | |
| pack-priv HttpClient. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpClientBuilderImpl | authenticator(Authenticator a)
Implements java. Sets an authenticator to use for HTTP authentication. |
| public HttpClient | build()
Implements java. Returns a new |
| public HttpClientBuilderImpl | connectTimeout(Duration duration)
Implements java. Sets the connect timeout duration for this client. |
| public HttpClientBuilderImpl | cookieHandler(CookieHandler cookieHandler)
Implements java. Sets a cookie handler. |
| public HttpClientBuilderImpl | executor(Executor s)
Implements java. Sets the executor to be used for asynchronous and dependent tasks. |
| public HttpClientBuilderImpl | followRedirects(HttpClient.
Implements java. Specifies whether requests will automatically follow redirects issued by the server. |
| public HttpClient. | localAddress(final InetAddress localAddr)
Overrides default java. Binds the socket to this local address when creating connections for sending requests. |
| public HttpClientBuilderImpl | priority(int priority)
Implements java. Sets the default priority for any HTTP/2 requests sent from this client. |
| public HttpClientBuilderImpl | proxy(ProxySelector proxy)
Implements java. Sets a |
| public HttpClientBuilderImpl | sslContext(SSLContext sslContext)
Implements java. Sets an |
| public HttpClientBuilderImpl | sslParameters(SSLParameters sslParameters)
Implements java. Sets an |
| public HttpClientBuilderImpl | version(HttpClient.
Implements java. Sets the default preferred HTTP protocol version for requests issued by this client. |
| authenticator | back to summary |
|---|---|
| pack-priv Authenticator authenticator | |
| connectTimeout | back to summary |
|---|---|
| pack-priv Duration connectTimeout | |
| cookieHandler | back to summary |
|---|---|
| pack-priv CookieHandler cookieHandler | |
| executor | back to summary |
|---|---|
| pack-priv Executor executor | |
| followRedirects | back to summary |
|---|---|
| pack-priv HttpClient. | |
| localAddr | back to summary |
|---|---|
| pack-priv InetAddress localAddr | |
| priority | back to summary |
|---|---|
| pack-priv int priority | |
| proxy | back to summary |
|---|---|
| pack-priv ProxySelector proxy | |
| sslContext | back to summary |
|---|---|
| pack-priv SSLContext sslContext | |
| sslParams | back to summary |
|---|---|
| pack-priv SSLParameters sslParams | |
| version | back to summary |
|---|---|
| pack-priv HttpClient. | |
| HttpClientBuilderImpl | back to summary |
|---|---|
| public HttpClientBuilderImpl() | |
| authenticator | back to summary |
|---|---|
| public HttpClientBuilderImpl authenticator(Authenticator a) Implements java. Doc from java. Sets an authenticator to use for HTTP authentication.
| |
| build | back to summary |
|---|---|
| public HttpClient build() Implements java. Doc from java. Returns a new
| |
| connectTimeout | back to summary |
|---|---|
| public HttpClientBuilderImpl connectTimeout(Duration duration) Implements java. Doc from java. Sets the connect timeout duration for this client. In the case where a new connection needs to be established, if
the connection cannot be established within the given
| |
| cookieHandler | back to summary |
|---|---|
| public HttpClientBuilderImpl cookieHandler(CookieHandler cookieHandler) Implements java. Doc from java. Sets a cookie handler.
| |
| executor | back to summary |
|---|---|
| public HttpClientBuilderImpl executor(Executor s) Implements java. Doc from java. Sets the executor to be used for asynchronous and dependent tasks. If this method is not invoked prior to building, a default executor is created for each newly built
| |
| followRedirects | back to summary |
|---|---|
| public HttpClientBuilderImpl followRedirects(HttpClient. Implements java. Doc from java. Specifies whether requests will automatically follow redirects issued by the server. If this method is not invoked prior to building, then newly built clients will use a default redirection
policy of
| |
| localAddress | back to summary |
|---|---|
| public HttpClient. Overrides default java. Doc from java. Binds the socket to this local address when creating connections for sending requests. If no local address is set or Common usages of the
| |
| priority | back to summary |
|---|---|
| public HttpClientBuilderImpl priority(int priority) Implements java. Doc from java. Sets the default priority for any HTTP/2 requests sent from this
client. The value provided must be between
| |
| proxy | back to summary |
|---|---|
| public HttpClientBuilderImpl proxy(ProxySelector proxy) Implements java. Doc from java. Sets a
| |
| sslContext | back to summary |
|---|---|
| public HttpClientBuilderImpl sslContext(SSLContext sslContext) Implements java. Doc from java. Sets an If this method is not invoked prior to building, then newly built clients will use the default context, which is normally adequate for client applications that do not need to specify protocols, or require client authentication.
| |
| sslParameters | back to summary |
|---|---|
| public HttpClientBuilderImpl sslParameters(SSLParameters sslParameters) Implements java. Doc from java. Sets an If this method is not invoked prior to building, then newly built clients will use a default, implementation specific, set of parameters. Some parameters which are used internally by the HTTP Client implementation (such as the application protocol list) should not be set by callers, as they may be ignored. The contents of the given object are copied.
| |
| version | back to summary |
|---|---|
| public HttpClientBuilderImpl version(HttpClient. Implements java. Doc from java. Sets the default preferred HTTP protocol version for requests issued by this client. If this method is not invoked prior to building, then newly built clients will prefer HTTP/2. If a request doesn't have a preferred version, then the effective preferred version for the request is the client's preferred version.
| |