@Generated(value="org.immutables.processor.ProxyProcessor") public final class RootPayloadRootProvider extends Object
RootProvider that returns endpoints extracted from the `/` API for the configured endpoint.| Modifier and Type | Class and Description |
|---|---|
static class |
RootPayloadRootProvider.Builder
Builds instances of type
RootPayloadRootProvider. |
| Modifier and Type | Method and Description |
|---|---|
static RootPayloadRootProvider.Builder |
builder()
Creates a builder for
RootPayloadRootProvider. |
void |
checkForValidApiHost() |
Mono<org.cloudfoundry.reactor.util.Operator> |
createOperator(ConnectionContext connectionContext) |
protected Mono<org.springframework.web.util.UriComponents> |
doGetRoot(ConnectionContext connectionContext) |
protected Mono<org.springframework.web.util.UriComponents> |
doGetRoot(String key,
ConnectionContext connectionContext) |
boolean |
equals(Object another)
This instance is equal to all instances of
RootPayloadRootProvider 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() |
Mono<String> |
getRoot(ConnectionContext connectionContext)
The normalized API root
|
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:
apiHost, port, secure, objectMapper. |
protected org.springframework.web.util.UriComponents |
normalize(org.springframework.web.util.UriComponentsBuilder builder) |
String |
toString()
Prints the immutable value
RootPayloadRootProvider with attribute values. |
public String getApiHost()
api.run.pivotal.io.public Optional<Integer> getPort()
443.public Optional<Boolean> getSecure()
true.public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
objectMapper attributepublic boolean equals(Object another)
RootPayloadRootProvider that have equal attribute values.public int hashCode()
apiHost, port, secure, objectMapper.public String toString()
RootPayloadRootProvider with attribute values.public static RootPayloadRootProvider.Builder builder()
RootPayloadRootProvider.
RootPayloadRootProvider.builder()
.apiHost(String) // required apiHost
.port(Integer) // optional port
.secure(Boolean) // optional secure
.objectMapper(com.fasterxml.jackson.databind.ObjectMapper) // required objectMapper
.build();
protected Mono<org.springframework.web.util.UriComponents> doGetRoot(ConnectionContext connectionContext)
protected Mono<org.springframework.web.util.UriComponents> doGetRoot(String key, ConnectionContext connectionContext)
@Value.Check public final void checkForValidApiHost()
public Mono<org.cloudfoundry.reactor.util.Operator> createOperator(ConnectionContext connectionContext)
public final 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 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 © 2024. All rights reserved.