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.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(HttpMethod httpMethod,
URI uri) |
createHttpUriRequest, createRequest, createRequestConfig, destroy, getHttpClient, mergeRequestConfig, postProcessHttpRequest, setBufferRequestBody, setConnectionRequestTimeout, setConnectTimeout, setHttpClient, setHttpContextFactory, setReadTimeout
public PreemptiveBasicAuthHttpComponentsClientHttpRequestFactory(org.apache.http.client.HttpClient httpClient, org.apache.http.HttpHost host)
protected org.apache.http.protocol.HttpContext createHttpContext(HttpMethod httpMethod, URI uri)
createHttpContext
in class HttpComponentsClientHttpRequestFactory
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.