@Generated(value={"Immutables.generator","_DefaultConnectionContext"}) public final class DefaultConnectionContext extends Object
ConnectionContext interface. This is the implementation that should be used for most non-testing cases.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultConnectionContext.Builder
Builds instances of type
DefaultConnectionContext. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultConnectionContext.Builder |
builder()
Creates a builder for
DefaultConnectionContext. |
boolean |
equals(Object another)
This instance is equal to all instances of
DefaultConnectionContext that have equal attribute values. |
String |
getApiHost()
The hostname of the API root.
|
Integer |
getConnectionPoolSize()
The number of connections to use when processing requests and responses
|
reactor.ipc.netty.http.client.HttpClient |
getHttpClient()
The
HttpClient to use |
reactor.core.publisher.Mono<Map<String,String>> |
getInfo() |
Optional<Boolean> |
getKeepAlive()
The
SO_KEEPALIVE value |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
The
ObjectMapper to use |
Integer |
getPort() |
List<com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> |
getProblemHandlers()
Jackson deserialization problem handlers.
|
Optional<ProxyConfiguration> |
getProxyConfiguration()
The (optional) proxy configuration
|
reactor.core.publisher.Mono<String> |
getRoot()
The normalized API root
|
reactor.core.publisher.Mono<String> |
getRoot(String key)
The normalized root for a given key
|
String |
getScheme() |
Optional<Boolean> |
getSecure()
Whether the connection to the root API should be secure (i.e.
|
Optional<Boolean> |
getSkipSslValidation()
Whether to skip SSL certificate validation for all hosts reachable from the API host.
|
Optional<Duration> |
getSocketTimeout()
The
SO_TIMEOUT value |
Optional<org.cloudfoundry.reactor.util.SslCertificateTruster> |
getSslCertificateTruster() |
Optional<Duration> |
getSslHandshakeTimeout()
The timeout for the SSL handshake negotiation
|
Integer |
getThreadPoolSize()
The number of worker threads to use when processing requests and responses
|
int |
hashCode()
Computes a hash code from attributes:
connectionPoolSize, httpClient, objectMapper, port, root, threadPoolSize, apiHost, info, keepAlive, problemHandlers, proxyConfiguration, scheme, secure, skipSslValidation, socketTimeout, sslCertificateTruster, sslHandshakeTimeout. |
String |
toString()
Prints the immutable value
DefaultConnectionContext with attribute values. |
public Integer getConnectionPoolSize()
public reactor.ipc.netty.http.client.HttpClient getHttpClient()
ConnectionContextHttpClient to usegetHttpClient in interface ConnectionContexthttpClient attributepublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ConnectionContextObjectMapper to usegetObjectMapper in interface ConnectionContextobjectMapper attributepublic Integer getPort()
port attributepublic reactor.core.publisher.Mono<String> getRoot()
ConnectionContextgetRoot in interface ConnectionContextroot attributepublic Integer getThreadPoolSize()
public String getApiHost()
api.run.pivotal.io.public reactor.core.publisher.Mono<Map<String,String>> getInfo()
info attributepublic List<com.fasterxml.jackson.databind.deser.DeserializationProblemHandler> getProblemHandlers()
public Optional<ProxyConfiguration> getProxyConfiguration()
public String getScheme()
scheme attributepublic Optional<Boolean> getSecure()
public Optional<Boolean> getSkipSslValidation()
false.public Optional<org.cloudfoundry.reactor.util.SslCertificateTruster> getSslCertificateTruster()
sslCertificateTruster attributepublic Optional<Duration> getSslHandshakeTimeout()
public boolean equals(Object another)
DefaultConnectionContext that have equal attribute values.public int hashCode()
connectionPoolSize, httpClient, objectMapper, port, root, threadPoolSize, apiHost, info, keepAlive, problemHandlers, proxyConfiguration, scheme, secure, skipSslValidation, socketTimeout, sslCertificateTruster, sslHandshakeTimeout.public String toString()
DefaultConnectionContext with attribute values.public static DefaultConnectionContext.Builder builder()
DefaultConnectionContext.public reactor.core.publisher.Mono<String> getRoot(String key)
ConnectionContextgetRoot in interface ConnectionContextkey - the key to look up root fromCopyright © 2017 Pivotal Software, Inc.. All rights reserved.