@Generated(value="org.immutables.processor.ProxyProcessor") public final class SingleEndpointRootProvider extends Object
RootProvider that returns a single endpoint regardless of what key is requested. Often used with standalone Cloud Foundry components such as the UAA.| Modifier and Type | Class and Description |
|---|---|
static class |
SingleEndpointRootProvider.Builder
Builds instances of type
SingleEndpointRootProvider. |
| Modifier and Type | Method and Description |
|---|---|
static SingleEndpointRootProvider.Builder |
builder()
Creates a builder for
SingleEndpointRootProvider. |
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
SingleEndpointRootProvider that have equal attribute values. |
String |
getApiHost()
The hostname of the API root.
|
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:
apiHost, port, secure. |
protected org.springframework.web.util.UriComponents |
normalize(org.springframework.web.util.UriComponentsBuilder builder) |
String |
toString()
Prints the immutable value
SingleEndpointRootProvider with attribute values. |
public String getApiHost()
api.run.pivotal.io.public Optional<Integer> getPort()
443.public Optional<Boolean> getSecure()
true.public boolean equals(Object another)
SingleEndpointRootProvider that have equal attribute values.public int hashCode()
apiHost, port, secure.public String toString()
SingleEndpointRootProvider with attribute values.public static SingleEndpointRootProvider.Builder builder()
SingleEndpointRootProvider.
SingleEndpointRootProvider.builder()
.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.