Class PlatformParameters

  • All Implemented Interfaces:
    AutoCloseable
    Direct Known Subclasses:
    PlatformImpl

    public class PlatformParameters
    extends Object
    implements AutoCloseable
    Keeps credentials and client configuration. Creates processor responsible for handling buffered requests. Important to call close() method on shutdown to finish processing.
    • Method Detail

      • createRestConnector

        public RestConnector createRestConnector()
      • getPageSize

        public int getPageSize()
      • getHost

        public String getHost()
      • getTenantId

        public String getTenantId()
      • getUser

        public String getUser()
      • getProxyHost

        public String getProxyHost()
      • setProxyHost

        public void setProxyHost​(String proxyHost)
      • getProxyPort

        public int getProxyPort()
      • setProxyPort

        public void setProxyPort​(int proxyPort)
      • getProxyUserId

        public String getProxyUserId()
      • setProxyUserId

        public void setProxyUserId​(String proxyUserId)
      • getProxyPassword

        public String getProxyPassword()
      • setProxyPassword

        public void setProxyPassword​(String proxyPassword)
      • getApplicationKey

        public String getApplicationKey()
      • setRequireResponseBody

        public void setRequireResponseBody​(boolean requireResponseBody)
      • requireResponseBody

        public boolean requireResponseBody()
      • isForceInitialHost

        public boolean isForceInitialHost()
      • setForceInitialHost

        public void setForceInitialHost​(boolean forceInitialHost)
      • isAlwaysCloseConnection

        public boolean isAlwaysCloseConnection()
      • setHttpClientConfig

        public void setHttpClientConfig​(HttpClientConfig httpClientConfig)
        Pass the configuration for underlying http client Example: platform.setHttpClientConfig( HttpClientConfig.httpConfig() .pool(ConnectionPoolConfig.connectionPool() .perHost(100) .max(200) .awaitTimeout(60000) .build()) .build() );
        Parameters:
        httpClientConfig - http client configuration
      • setAlwaysCloseConnection

        public void setAlwaysCloseConnection​(boolean alwaysCloseConnection)
        Set header to the http client to close connection always.
        Parameters:
        alwaysCloseConnection - specifies if header value should be set
      • getTfaToken

        public String getTfaToken()
      • setTfaToken

        public void setTfaToken​(String tfaToken)
      • setTfaToken

        public void setTfaToken​(Supplier<String> tfaToken)
      • setHost

        public void setHost​(String host)
      • getRequestOrigin

        public String getRequestOrigin()
      • setResponseMapper

        public void setResponseMapper​(ResponseMapper responseMapper)
      • setChunkedEncodingSize

        public void setChunkedEncodingSize​(int chunkedEncodingSize)
      • getChunkedEncodingSize

        public int getChunkedEncodingSize()