public final class EurekaJerseyClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EurekaJerseyClient.JerseyClient |
| Modifier and Type | Method and Description |
|---|---|
static EurekaJerseyClient.JerseyClient |
createJerseyClient(java.lang.String clientName,
int connectionTimeout,
int readTimeout,
int maxConnectionsPerHost,
int maxTotalConnections,
int connectionIdleTimeout)
Creates a Jersey client with the given configuration parameters.
|
static EurekaJerseyClient.JerseyClient |
createProxyJerseyClient(java.lang.String clientName,
int connectionTimeout,
int readTimeout,
int maxConnectionsPerHost,
int maxTotalConnections,
int connectionIdleTimeout,
java.lang.String proxyHost,
java.lang.String proxyPort,
java.lang.String proxyUserName,
java.lang.String proxyPassword)
Creates a Jersey client with the given configuration parameters.
|
static EurekaJerseyClient.JerseyClient |
createSSLJerseyClient(java.lang.String clientName,
int connectionTimeout,
int readTimeout,
int maxConnectionsPerHost,
int maxTotalConnections,
int connectionIdleTimeout,
java.lang.String trustStoreFileName,
java.lang.String trustStorePassword)
Creates the SSL based Jersey client with the given configuration
parameters.
|
static EurekaJerseyClient.JerseyClient |
createSystemSSLJerseyClient(java.lang.String clientName,
int connectionTimeout,
int readTimeout,
int maxConnectionsPerHost,
int maxTotalConnections,
int connectionIdleTimeout)
Creates the SSL based Jersey client with the given configuration
parameters and using a SystemSocketFactory to support standard keystore/truststore
system properties.
|
public static EurekaJerseyClient.JerseyClient createJerseyClient(java.lang.String clientName, int connectionTimeout, int readTimeout, int maxConnectionsPerHost, int maxTotalConnections, int connectionIdleTimeout)
clientName - connectionTimeout - - The connection timeout of the connection in millisecondsreadTimeout - - The read timeout of the connection in millisecondsmaxConnectionsPerHost - - The maximum number of connections to a particular hostmaxTotalConnections - - The maximum number of total connections across all hostsconnectionIdleTimeout - - The idle timeout after which the connections will be cleaned
up in secondspublic static EurekaJerseyClient.JerseyClient createProxyJerseyClient(java.lang.String clientName, int connectionTimeout, int readTimeout, int maxConnectionsPerHost, int maxTotalConnections, int connectionIdleTimeout, java.lang.String proxyHost, java.lang.String proxyPort, java.lang.String proxyUserName, java.lang.String proxyPassword)
clientName - connectionTimeout - - The connection timeout of the connection in millisecondsreadTimeout - - The read timeout of the connection in millisecondsmaxConnectionsPerHost - - The maximum number of connections to a particular hostmaxTotalConnections - - The maximum number of total connections across all hostsconnectionIdleTimeout - - The idle timeout after which the connections will be cleaned
up in secondsproxyHost - - The hostname of the proxyproxyPort - - The port number the proxy is listening onproxyUserName - - The username to use to authenticate to the proxyproxyPassword - - The password to use to authenticate to the proxypublic static EurekaJerseyClient.JerseyClient createSSLJerseyClient(java.lang.String clientName, int connectionTimeout, int readTimeout, int maxConnectionsPerHost, int maxTotalConnections, int connectionIdleTimeout, java.lang.String trustStoreFileName, java.lang.String trustStorePassword)
clientName - connectionTimeout - - The connection timeout of the connection in millisecondsreadTimeout - - The read timeout of the connection in millisecondsmaxConnectionsPerHost - - The maximum number of connections to a particular hostmaxTotalConnections - - The maximum number of total connections across all hostsconnectionIdleTimeout - - The idle timeout after which the connections will be cleaned
up in secondstrustStoreFileName - - The full path to the trust store filetrustStorePassword - - The password of the trust store filepublic static EurekaJerseyClient.JerseyClient createSystemSSLJerseyClient(java.lang.String clientName, int connectionTimeout, int readTimeout, int maxConnectionsPerHost, int maxTotalConnections, int connectionIdleTimeout)
clientName - connectionTimeout - - The connection timeout of the connection in millisecondsreadTimeout - - The read timeout of the connection in millisecondsmaxConnectionsPerHost - - The maximum number of connections to a particular hostmaxTotalConnections - - The maximum number of total connections across all hostsconnectionIdleTimeout - - The idle timeout after which the connections will be cleaned
up in seconds