public static final class HttpServiceProperties.Builder
extends java.lang.Object
HttpServiceProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
HttpServiceProperties . |
Modifier and Type | Method and Description |
---|---|
HttpServiceProperties |
build() |
HttpServiceProperties.Builder |
setBasicAuthenticationEnabled(java.lang.Boolean basicAuthenticationEnabled)
Identifies whether basic authentication is enabled or disabled in API calls.
|
HttpServiceProperties.Builder |
setCertificate(Certificate certificate) |
HttpServiceProperties.Builder |
setCipherSuites(java.util.List<CipherSuite> cipherSuites)
Cipher suites used to secure contents of connection
|
HttpServiceProperties.Builder |
setClientApiConcurrencyLimit(java.lang.Long clientApiConcurrencyLimit)
The maximum number of concurrent API requests that will be serviced for a given
authenticated client.
|
HttpServiceProperties.Builder |
setClientApiRateLimit(java.lang.Long clientApiRateLimit)
The maximum number of API requests that will be serviced per second for a given
authenticated client.
|
HttpServiceProperties.Builder |
setConnectionTimeout(java.lang.Long connectionTimeout)
NSX connection timeout, set to 0 to configure no timeout format: int64
|
HttpServiceProperties.Builder |
setCookieBasedAuthenticationEnabled(java.lang.Boolean cookieBasedAuthenticationEnabled)
Identifies whether cookie-based authentication is enabled or disabled in API
calls.
|
HttpServiceProperties.Builder |
setGlobalApiConcurrencyLimit(java.lang.Long globalApiConcurrencyLimit)
The maximum number of concurrent API requests that will be serviced.
|
HttpServiceProperties.Builder |
setLoggingLevel(java.lang.String loggingLevel)
Possible values are:
HttpServiceProperties.LOGGING_LEVEL_OFF HttpServiceProperties.LOGGING_LEVEL_FATAL HttpServiceProperties.LOGGING_LEVEL_ERROR HttpServiceProperties.LOGGING_LEVEL_WARN HttpServiceProperties.LOGGING_LEVEL_INFO HttpServiceProperties.LOGGING_LEVEL_DEBUG HttpServiceProperties.LOGGING_LEVEL_TRACE
Service logging level |
HttpServiceProperties.Builder |
setProtocolVersions(java.util.List<ProtocolVersion> protocolVersions)
TLS protocol versions
|
HttpServiceProperties.Builder |
setRedirectHost(java.lang.String redirectHost)
Host name or IP address to use for redirect location headers, or empty string to
derive from current request
|
HttpServiceProperties.Builder |
setSessionTimeout(java.lang.Long sessionTimeout)
NSX session inactivity timeout, set to 0 to configure no timeout format: int64
|
public Builder()
HttpServiceProperties
.public HttpServiceProperties.Builder setBasicAuthenticationEnabled(java.lang.Boolean basicAuthenticationEnabled)
basicAuthenticationEnabled
- New value for the property.public HttpServiceProperties.Builder setCertificate(Certificate certificate)
certificate
- New value for the property.public HttpServiceProperties.Builder setCipherSuites(java.util.List<CipherSuite> cipherSuites)
cipherSuites
- New value for the property.public HttpServiceProperties.Builder setClientApiConcurrencyLimit(java.lang.Long clientApiConcurrencyLimit)
clientApiConcurrencyLimit
- New value for the property.public HttpServiceProperties.Builder setClientApiRateLimit(java.lang.Long clientApiRateLimit)
clientApiRateLimit
- New value for the property.public HttpServiceProperties.Builder setConnectionTimeout(java.lang.Long connectionTimeout)
connectionTimeout
- New value for the property.public HttpServiceProperties.Builder setCookieBasedAuthenticationEnabled(java.lang.Boolean cookieBasedAuthenticationEnabled)
cookieBasedAuthenticationEnabled
- New value for the property.public HttpServiceProperties.Builder setGlobalApiConcurrencyLimit(java.lang.Long globalApiConcurrencyLimit)
globalApiConcurrencyLimit
- New value for the property.public HttpServiceProperties.Builder setLoggingLevel(java.lang.String loggingLevel)
loggingLevel
- New value for the property.public HttpServiceProperties.Builder setProtocolVersions(java.util.List<ProtocolVersion> protocolVersions)
protocolVersions
- New value for the property.public HttpServiceProperties.Builder setRedirectHost(java.lang.String redirectHost)
redirectHost
- New value for the property.public HttpServiceProperties.Builder setSessionTimeout(java.lang.Long sessionTimeout)
sessionTimeout
- New value for the property.public HttpServiceProperties build()