@Generated(value="org.immutables.processor.ProxyProcessor") public final class InfoPayloadRootProvider extends Object
RootProvider that returns endpoints extracted from the `/v2/info` API for the configured endpoint.| Modifier and Type | Class and Description |
|---|---|
static class |
InfoPayloadRootProvider.Builder
Builds instances of type
InfoPayloadRootProvider. |
| Modifier and Type | Method and Description |
|---|---|
static InfoPayloadRootProvider.Builder |
builder()
Creates a builder for
InfoPayloadRootProvider. |
void |
checkForValidApiHost() |
reactor.core.publisher.Mono<org.cloudfoundry.reactor.util.Operator> |
createOperator(ConnectionContext connectionContext) |
protected reactor.core.publisher.Mono<org.springframework.web.util.UriComponents> |
doGetRoot(ConnectionContext connectionContext) |
protected reactor.core.publisher.Mono<org.springframework.web.util.UriComponents> |
doGetRoot(String key,
ConnectionContext connectionContext) |
boolean |
equals(Object another)
This instance is equal to all instances of
InfoPayloadRootProvider that have equal attribute values. |
String |
getApiHost()
The hostname of the API root.
|
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Optional<Integer> |
getPort()
The port for the Cloud Foundry instance.
|
protected org.springframework.web.util.UriComponents |
getRoot() |
reactor.core.publisher.Mono<String> |
getRoot(ConnectionContext connectionContext)
The normalized API root
|
reactor.core.publisher.Mono<String> |
getRoot(String key,
ConnectionContext connectionContext)
The normalized root for a given key
|
Optional<Boolean> |
getSecure()
Whether the connection to the root API should be secure (i.e.
|
int |
hashCode()
Computes a hash code from attributes:
objectMapper, apiHost, port, secure. |
protected org.springframework.web.util.UriComponents |
normalize(org.springframework.web.util.UriComponentsBuilder builder) |
String |
toString()
Prints the immutable value
InfoPayloadRootProvider with attribute values. |
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
objectMapper attributepublic String getApiHost()
api.run.pivotal.io.public Optional<Integer> getPort()
443.public Optional<Boolean> getSecure()
true.public boolean equals(Object another)
InfoPayloadRootProvider that have equal attribute values.public int hashCode()
objectMapper, apiHost, port, secure.public String toString()
InfoPayloadRootProvider with attribute values.public static InfoPayloadRootProvider.Builder builder()
InfoPayloadRootProvider.
InfoPayloadRootProvider.builder()
.objectMapper(com.fasterxml.jackson.databind.ObjectMapper) // required objectMapper
.apiHost(String) // required apiHost
.port(Integer) // optional port
.secure(Boolean) // optional secure
.build();
protected reactor.core.publisher.Mono<org.springframework.web.util.UriComponents> doGetRoot(ConnectionContext connectionContext)
protected reactor.core.publisher.Mono<org.springframework.web.util.UriComponents> doGetRoot(String key, ConnectionContext connectionContext)
@Value.Check public final void checkForValidApiHost()
public reactor.core.publisher.Mono<org.cloudfoundry.reactor.util.Operator> createOperator(ConnectionContext connectionContext)
public final reactor.core.publisher.Mono<String> getRoot(String key, ConnectionContext connectionContext)
RootProvidergetRoot in interface RootProviderkey - the key to look up root fromconnectionContext - a ConnectionContext to be used if the roo needs to be retrieved via a network requestpublic final reactor.core.publisher.Mono<String> getRoot(ConnectionContext connectionContext)
RootProvidergetRoot in interface RootProviderconnectionContext - a ConnectionContext to be used if the root needs to be retrieved via a network requestprotected final org.springframework.web.util.UriComponents getRoot()
protected final org.springframework.web.util.UriComponents normalize(org.springframework.web.util.UriComponentsBuilder builder)
Copyright © 2019. All rights reserved.