Class PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
java.lang.Object
org.springframework.http.client.HttpComponentsClientHttpRequestFactory
org.springframework.cloud.dataflow.rest.util.PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
- All Implemented Interfaces:
DisposableBean
,ClientHttpRequestFactory
public class PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
extends HttpComponentsClientHttpRequestFactory
HttpComponentsClientHttpRequestFactory
extension that aggressively
sends HTTP basic authentication credentials without having to first
receive an HTTP 401 response from the server.- Author:
- Gunnar Hillert, Mike Heath
-
Constructor Summary
ConstructorDescriptionPreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
(org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.core5.http.HttpHost host) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hc.core5.http.protocol.HttpContext
createHttpContext
(HttpMethod httpMethod, URI uri) Methods inherited from class org.springframework.http.client.HttpComponentsClientHttpRequestFactory
createHttpUriRequest, createRequest, createRequestConfig, destroy, getHttpClient, mergeRequestConfig, postProcessHttpRequest, setBufferRequestBody, setConnectionRequestTimeout, setConnectionRequestTimeout, setConnectTimeout, setConnectTimeout, setHttpClient, setHttpContextFactory
-
Constructor Details
-
PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory
public PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory(org.apache.hc.client5.http.classic.HttpClient httpClient, org.apache.hc.core5.http.HttpHost host)
-
-
Method Details
-
createHttpContext
protected org.apache.hc.core5.http.protocol.HttpContext createHttpContext(HttpMethod httpMethod, URI uri) - Overrides:
createHttpContext
in classHttpComponentsClientHttpRequestFactory
-