public final class HttpClientUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROXY_PORT_PROPERTY
Configuration name for proxy port.
|
static String |
HTTP_PROXY_PROPERTY
Configuration name for proxy host.
|
static int |
HTTP_RETRY_DELAY
How long to delay after failing first HTTP call, in milliseconds.
|
static int |
MAX_RETRIES
How many times we retry a failed HTTP call.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jetty.client.HttpClient |
buildHttpClient(String httpProxyHost,
Integer httpProxyPort) |
static com.github.rholder.retry.Retryer<org.eclipse.jetty.client.api.ContentResponse> |
buildHttpClientRetryer() |
static String |
getHttpProxyHost() |
static Integer |
getHttpProxyPort() |
static void |
ignoreCookies(org.apache.http.client.methods.HttpRequestBase request)
Configure request to ignore cookies.
|
public static final String HTTP_PROXY_PROPERTY
public static final String HTTP_PROXY_PORT_PROPERTY
public static final int MAX_RETRIES
public static final int HTTP_RETRY_DELAY
public static void ignoreCookies(org.apache.http.client.methods.HttpRequestBase request)
public static org.eclipse.jetty.client.HttpClient buildHttpClient(@Nullable String httpProxyHost, @Nullable Integer httpProxyPort)
public static com.github.rholder.retry.Retryer<org.eclipse.jetty.client.api.ContentResponse> buildHttpClientRetryer()
Copyright © 2019. All rights reserved.