public class PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
extends org.springframework.http.client.HttpComponentsClientHttpRequestFactory
HttpComponentsClientHttpRequestFactory extension that aggressively
sends HTTP basic authentication credentials without having to first
receive an HTTP 401 response from the server.| Constructor and Description |
|---|
PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory(org.apache.http.client.HttpClient httpClient,
org.apache.http.HttpHost host) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.protocol.HttpContext |
createHttpContext(org.springframework.http.HttpMethod httpMethod,
URI uri) |
createHttpUriRequest, createRequest, createRequestConfig, destroy, getHttpClient, mergeRequestConfig, postProcessHttpRequest, setBufferRequestBody, setConnectionRequestTimeout, setConnectTimeout, setHttpClient, setReadTimeoutpublic PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory(org.apache.http.client.HttpClient httpClient,
org.apache.http.HttpHost host)
protected org.apache.http.protocol.HttpContext createHttpContext(org.springframework.http.HttpMethod httpMethod,
URI uri)
createHttpContext in class org.springframework.http.client.HttpComponentsClientHttpRequestFactoryCopyright © 2020 Pivotal Software, Inc.. All rights reserved.