@Generated(value="org.immutables.processor.ProxyProcessor") public final class DelegatingRootProvider extends Object
RootProvider that returns endpoints by delegating to an RootPayloadRootProvider and then an InfoPayloadRootProvider.| Modifier and Type | Class and Description |
|---|---|
static class |
DelegatingRootProvider.Builder
Builds instances of type
DelegatingRootProvider. |
| Modifier and Type | Method and Description |
|---|---|
static DelegatingRootProvider.Builder |
builder()
Creates a builder for
DelegatingRootProvider. |
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
DelegatingRootProvider that have equal attribute values. |
String |
getApiHost()
The hostname of the API root.
|
InfoPayloadRootProvider |
getInfoPayloadRootProvider() |
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
|
RootPayloadRootProvider |
getRootPayloadRootProvider() |
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, infoPayloadRootProvider, objectMapper, rootPayloadRootProvider. |
protected org.springframework.web.util.UriComponents |
normalize(org.springframework.web.util.UriComponentsBuilder builder) |
String |
toString()
Prints the immutable value
DelegatingRootProvider with attribute values. |
public String getApiHost()
api.run.pivotal.io.public Optional<Integer> getPort()
443.public Optional<Boolean> getSecure()
true.public InfoPayloadRootProvider getInfoPayloadRootProvider()
infoPayloadRootProvider attributepublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
objectMapper attributepublic RootPayloadRootProvider getRootPayloadRootProvider()
rootPayloadRootProvider attributepublic boolean equals(Object another)
DelegatingRootProvider that have equal attribute values.public int hashCode()
apiHost, port, secure, infoPayloadRootProvider, objectMapper, rootPayloadRootProvider.public String toString()
DelegatingRootProvider with attribute values.public static DelegatingRootProvider.Builder builder()
DelegatingRootProvider.
DelegatingRootProvider.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 © 2021. All rights reserved.