Package com.symphony.bdk.http.jersey2
Class ApiClientBuilderJersey2
java.lang.Object
com.symphony.bdk.http.jersey2.ApiClientBuilderJersey2
- All Implemented Interfaces:
com.symphony.bdk.http.api.ApiClientBuilder
@API(status=STABLE)
public class ApiClientBuilderJersey2
extends Object
implements com.symphony.bdk.http.api.ApiClientBuilder
Specific implementation of
ApiClientBuilder which creates a new instance of an ApiClientJersey2.
Please note that overriding this class is an API.Status.EXPERIMENTAL feature that we
offer to developers for ApiClient customization. The internal contract of this class (e.g. protected methods)
is subject to changes in the future.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected intprotected intprotected intprotected byte[]protected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected byte[]protected StringFields inherited from interface com.symphony.bdk.http.api.ApiClientBuilder
DEFAULT_CONNECT_TIMEOUT, DEFAULT_CONNECTION_POOL_MAX, DEFAULT_READ_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.symphony.bdk.http.api.ApiClientbuild()Specific implementation ofApiClientBuilder.build()which returns anApiClientJersey2instance.protected voidconfigureJackson(org.glassfish.jersey.client.ClientConfig clientConfig) protected voidconfigureProxy(org.glassfish.jersey.client.ClientConfig clientConfig) protected org.glassfish.jersey.client.ClientConfigcreateClientConfig(SSLContext sslContext) protected SSLContextcom.symphony.bdk.http.api.ApiClientBuilderwithAuthentication(String name, com.symphony.bdk.http.api.auth.Authentication authentication) com.symphony.bdk.http.api.ApiClientBuilderwithBasePath(String basePath) com.symphony.bdk.http.api.ApiClientBuilderwithConnectionPoolMax(Integer connectionPoolMax) com.symphony.bdk.http.api.ApiClientBuilderwithConnectionPoolPerRoute(Integer connectionPoolPerRoute) com.symphony.bdk.http.api.ApiClientBuilderwithConnectionTimeout(Integer connectionTimeout) com.symphony.bdk.http.api.ApiClientBuilderwithDefaultHeader(String key, String value) com.symphony.bdk.http.api.ApiClientBuilderwithKeyStore(byte[] keyStoreBytes, String keyStorePassword) com.symphony.bdk.http.api.ApiClientBuildercom.symphony.bdk.http.api.ApiClientBuilderwithProxyCredentials(String proxyUser, String proxyPassword) com.symphony.bdk.http.api.ApiClientBuilderwithReadTimeout(Integer readTimeout) com.symphony.bdk.http.api.ApiClientBuilderwithTemporaryFolderPath(String temporaryFolderPath) com.symphony.bdk.http.api.ApiClientBuilderwithTrustStore(byte[] trustStoreBytes, String trustStorePassword) com.symphony.bdk.http.api.ApiClientBuilderwithUserAgent(String userAgent)
-
Field Details
-
basePath
-
keyStoreBytes
protected byte[] keyStoreBytes -
keyStorePassword
-
trustStoreBytes
protected byte[] trustStoreBytes -
trustStorePassword
-
defaultHeaders
-
connectionTimeout
protected int connectionTimeout -
readTimeout
protected int readTimeout -
connectionPoolMax
protected int connectionPoolMax -
connectionPoolPerRoute
protected int connectionPoolPerRoute -
temporaryFolderPath
-
proxyUrl
-
proxyUser
-
proxyPassword
-
authentications
-
-
Constructor Details
-
ApiClientBuilderJersey2
public ApiClientBuilderJersey2()
-
-
Method Details
-
build
public com.symphony.bdk.http.api.ApiClient build()Specific implementation ofApiClientBuilder.build()which returns anApiClientJersey2instance.- Specified by:
buildin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withBasePath
- Specified by:
withBasePathin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withUserAgent
- Specified by:
withUserAgentin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withKeyStore
public com.symphony.bdk.http.api.ApiClientBuilder withKeyStore(byte[] keyStoreBytes, String keyStorePassword) - Specified by:
withKeyStorein interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withTrustStore
public com.symphony.bdk.http.api.ApiClientBuilder withTrustStore(byte[] trustStoreBytes, String trustStorePassword) - Specified by:
withTrustStorein interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withDefaultHeader
- Specified by:
withDefaultHeaderin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withTemporaryFolderPath
public com.symphony.bdk.http.api.ApiClientBuilder withTemporaryFolderPath(String temporaryFolderPath) - Specified by:
withTemporaryFolderPathin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withConnectionTimeout
- Specified by:
withConnectionTimeoutin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withReadTimeout
- Specified by:
withReadTimeoutin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withConnectionPoolMax
- Specified by:
withConnectionPoolMaxin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withConnectionPoolPerRoute
public com.symphony.bdk.http.api.ApiClientBuilder withConnectionPoolPerRoute(Integer connectionPoolPerRoute) - Specified by:
withConnectionPoolPerRoutein interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withProxy
- Specified by:
withProxyin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withProxyCredentials
public com.symphony.bdk.http.api.ApiClientBuilder withProxyCredentials(String proxyUser, String proxyPassword) - Specified by:
withProxyCredentialsin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
withAuthentication
public com.symphony.bdk.http.api.ApiClientBuilder withAuthentication(String name, com.symphony.bdk.http.api.auth.Authentication authentication) - Specified by:
withAuthenticationin interfacecom.symphony.bdk.http.api.ApiClientBuilder
-
createClientConfig
@API(status=EXPERIMENTAL) protected org.glassfish.jersey.client.ClientConfig createClientConfig(SSLContext sslContext) -
configureJackson
@API(status=EXPERIMENTAL) protected void configureJackson(org.glassfish.jersey.client.ClientConfig clientConfig) -
configureProxy
@API(status=EXPERIMENTAL) protected void configureProxy(org.glassfish.jersey.client.ClientConfig clientConfig) -
createSSLContext
-