Package | Description |
---|---|
org.opennms.core.web | |
org.opennms.netmgt.rt |
Modifier and Type | Method and Description |
---|---|
HttpClientWrapper |
HttpClientWrapper.addBasicCredentials(String username,
String password)
Add basic auth credentials to requests created by the HttpClientWrapper.
|
HttpClientWrapper |
HttpClientWrapper.addRequestInterceptor(org.apache.http.HttpRequestInterceptor interceptor)
Add an
HttpRequestInterceptor for all requests. |
HttpClientWrapper |
HttpClientWrapper.addResponseInterceptor(org.apache.http.HttpResponseInterceptor interceptor)
Add an
HttpResponseInterceptor for all responses. |
static HttpClientWrapper |
HttpClientWrapper.create()
Create a new HTTP client wrapper.
|
HttpClientWrapper |
HttpClientWrapper.dontReuseConnections()
Configure HttpClient to not reuse connections for multiple requests.
|
HttpClientWrapper |
HttpClientWrapper.duplicate()
Create a duplicate HttpClientWrapper from this wrapper.
|
HttpClientWrapper |
HttpClientWrapper.setConnectionTimeout(Integer connectionTimeout)
Set the connection timeout on connections.
|
HttpClientWrapper |
HttpClientWrapper.setRetries(Integer retries)
Set the number of retries when making requests.
|
HttpClientWrapper |
HttpClientWrapper.setSocketTimeout(Integer socketTimeout)
Set the socket timeout on connections.
|
HttpClientWrapper |
HttpClientWrapper.setUserAgent(String userAgent)
Set the User-Agent header used when making requests.
|
HttpClientWrapper |
HttpClientWrapper.setVersion(org.apache.http.HttpVersion httpVersion)
Set the HTTP version used when making requests.
|
HttpClientWrapper |
HttpClientWrapper.setVirtualHost(String host)
Set the Host header used when making requests.
|
HttpClientWrapper |
HttpClientWrapper.trustSelfSigned(String scheme)
Trust self-signed certificates.
|
HttpClientWrapper |
HttpClientWrapper.useBrowserCompatibleCookies()
Use browser-compatible cookies rather than the default.
|
HttpClientWrapper |
HttpClientWrapper.useLaxRedirect()
Use LAX redirect strategy.
|
HttpClientWrapper |
HttpClientWrapper.usePreemptiveAuth()
Preemptively pass basic authentication headers, rather than waiting for the server
to response asking for it.
|
HttpClientWrapper |
HttpClientWrapper.useRelaxedSSL(String scheme)
Use relaxed SSL connection handling (EmptyKeyRelaxedTrustSSLContext.ALGORITHM, allows any certificate)
|
HttpClientWrapper |
HttpClientWrapper.useSystemProxySettings()
Configure HttpClient to honor the system java proxy settings (-Dhttp.proxyHost= -Dhttp.proxyPort=)
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpClientWrapperConfigHelper.setUseSystemProxyIfDefined(HttpClientWrapper httpClientWrapper,
Map<String,Object> keyedParameters) |
Modifier and Type | Method and Description |
---|---|
HttpClientWrapper |
RequestTracker.getClientWrapper() |
Copyright © 2020. All rights reserved.