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 Details

    • basePath

      protected String basePath
    • keyStoreBytes

      protected byte[] keyStoreBytes
    • keyStorePassword

      protected String keyStorePassword
    • trustStoreBytes

      protected byte[] trustStoreBytes
    • trustStorePassword

      protected String trustStorePassword
    • defaultHeaders

      protected Map<String,String> defaultHeaders
    • connectionTimeout

      protected int connectionTimeout
    • readTimeout

      protected int readTimeout
    • connectionPoolMax

      protected int connectionPoolMax
    • connectionPoolPerRoute

      protected int connectionPoolPerRoute
    • temporaryFolderPath

      protected String temporaryFolderPath
    • proxyUrl

      protected String proxyUrl
    • proxyUser

      protected String proxyUser
    • proxyPassword

      protected String proxyPassword
    • authentications

      protected Map<String,com.symphony.bdk.http.api.auth.Authentication> authentications
  • Constructor Details

    • ApiClientBuilderJersey2

      public ApiClientBuilderJersey2()
  • Method Details

    • build

      public com.symphony.bdk.http.api.ApiClient build()
      Specific implementation of ApiClientBuilder.build() which returns an ApiClientJersey2 instance.
      Specified by:
      build in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withBasePath

      public com.symphony.bdk.http.api.ApiClientBuilder withBasePath(String basePath)
      Specified by:
      withBasePath in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withUserAgent

      public com.symphony.bdk.http.api.ApiClientBuilder withUserAgent(String userAgent)
      Specified by:
      withUserAgent in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withKeyStore

      public com.symphony.bdk.http.api.ApiClientBuilder withKeyStore(byte[] keyStoreBytes, String keyStorePassword)
      Specified by:
      withKeyStore in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withTrustStore

      public com.symphony.bdk.http.api.ApiClientBuilder withTrustStore(byte[] trustStoreBytes, String trustStorePassword)
      Specified by:
      withTrustStore in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withDefaultHeader

      public com.symphony.bdk.http.api.ApiClientBuilder withDefaultHeader(String key, String value)
      Specified by:
      withDefaultHeader in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withTemporaryFolderPath

      public com.symphony.bdk.http.api.ApiClientBuilder withTemporaryFolderPath(String temporaryFolderPath)
      Specified by:
      withTemporaryFolderPath in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withConnectionTimeout

      public com.symphony.bdk.http.api.ApiClientBuilder withConnectionTimeout(Integer connectionTimeout)
      Specified by:
      withConnectionTimeout in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withReadTimeout

      public com.symphony.bdk.http.api.ApiClientBuilder withReadTimeout(Integer readTimeout)
      Specified by:
      withReadTimeout in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withConnectionPoolMax

      public com.symphony.bdk.http.api.ApiClientBuilder withConnectionPoolMax(Integer connectionPoolMax)
      Specified by:
      withConnectionPoolMax in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withConnectionPoolPerRoute

      public com.symphony.bdk.http.api.ApiClientBuilder withConnectionPoolPerRoute(Integer connectionPoolPerRoute)
      Specified by:
      withConnectionPoolPerRoute in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withProxy

      public com.symphony.bdk.http.api.ApiClientBuilder withProxy(String proxyHost, int proxyPort)
      Specified by:
      withProxy in interface com.symphony.bdk.http.api.ApiClientBuilder
    • withProxyCredentials

      public com.symphony.bdk.http.api.ApiClientBuilder withProxyCredentials(String proxyUser, String proxyPassword)
      Specified by:
      withProxyCredentials in interface com.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:
      withAuthentication in interface com.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

      @API(status=EXPERIMENTAL) protected SSLContext createSSLContext()