java.lang.Object
org.refcodes.rest.HttpDiscoveryContextBuilder
- All Implemented Interfaces:
HttpDiscoveryUrlAccessor
,HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<HttpDiscoveryContextBuilder>
,HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
,HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
,org.refcodes.security.TrustStoreDescriptorAccessor
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpDiscoveryContextBuilder>
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
,org.refcodes.web.LoadBalancingStrategyAccessor
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryContextBuilder>
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
public class HttpDiscoveryContextBuilder
extends Object
implements org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty, org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryContextBuilder>, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<HttpDiscoveryContextBuilder>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpDiscoveryContextBuilder>
The
HttpDiscoveryContextBuilder
implements the
HttpDiscoveryContext
with builder functionality as of the builder
pattern.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpDiscoveryUrlAccessor
HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B extends HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B>>, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
Nested classes/interfaces inherited from interface org.refcodes.web.LoadBalancingStrategyAccessor
org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B extends org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B>>, org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator, org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
Nested classes/interfaces inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor
org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
-
Constructor Summary
ConstructorDescriptionHttpDiscoveryContextBuilder
(org.refcodes.web.Url aDiscoveryUrl) Constructs theHttpDiscoveryContextBuilder
context.HttpDiscoveryContextBuilder
(org.refcodes.web.Url aDiscoveryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Constructs theHttpDiscoveryContextBuilder
context. -
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.web.Url
Retrieves the URL from the URL property locating the service discovery discovery.org.refcodes.web.LoadBalancingStrategy
org.refcodes.security.TrustStoreDescriptor
void
setHttpDiscoveryUrl
(org.refcodes.web.Url aUrl) Sets the URL for the URL property locating the service discovery discovery.void
setLoadBalancingStrategy
(org.refcodes.web.LoadBalancingStrategy aStrategy) void
setTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor) withHttpDiscoveryUrl
(org.refcodes.web.Url aUrl) Sets the URL for the URL property locating the service discovery discovery.withLoadBalancingStrategy
(org.refcodes.web.LoadBalancingStrategy aStrategy) withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
letHttpDiscoveryUrl
Methods inherited from interface org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
letLoadBalancingStrategy
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
-
Constructor Details
-
HttpDiscoveryContextBuilder
public HttpDiscoveryContextBuilder(org.refcodes.web.Url aDiscoveryUrl) Constructs theHttpDiscoveryContextBuilder
context.- Parameters:
aDiscoveryUrl
- TheUrl
pointing to the service discovery registry.
-
HttpDiscoveryContextBuilder
public HttpDiscoveryContextBuilder(org.refcodes.web.Url aDiscoveryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Constructs theHttpDiscoveryContextBuilder
context.- Parameters:
aDiscoveryUrl
- TheUrl
pointing to the service discovery registry.aStoreDescriptor
- The descriptor describing the truststore (KeyStore
) required for establishing an HTTPS connection to the registry.
-
-
Method Details
-
withLoadBalancingStrategy
public HttpDiscoveryContextBuilder withLoadBalancingStrategy(org.refcodes.web.LoadBalancingStrategy aStrategy) - Specified by:
withLoadBalancingStrategy
in interfaceorg.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryContextBuilder>
-
withHttpDiscoveryUrl
Sets the URL for the URL property locating the service discovery discovery.- Specified by:
withHttpDiscoveryUrl
in interfaceHttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<HttpDiscoveryContextBuilder>
- Parameters:
aUrl
- The service discovery discovery URL to be stored by the URL property.- Returns:
- The builder for applying multiple build operations.
-
withTrustStoreDescriptor
public HttpDiscoveryContextBuilder withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) - Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpDiscoveryContextBuilder>
-
getHttpDiscoveryUrl
public org.refcodes.web.Url getHttpDiscoveryUrl()Retrieves the URL from the URL property locating the service discovery discovery.- Specified by:
getHttpDiscoveryUrl
in interfaceHttpDiscoveryUrlAccessor
- Returns:
- The URL stored by the URL property.
-
getTrustStoreDescriptor
public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()- Specified by:
getTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor
-
setHttpDiscoveryUrl
public void setHttpDiscoveryUrl(org.refcodes.web.Url aUrl) Sets the URL for the URL property locating the service discovery discovery.- Specified by:
setHttpDiscoveryUrl
in interfaceHttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
- Parameters:
aUrl
- The service discovery discovery URL to be stored by the URL property.
-
setTrustStoreDescriptor
public void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor) - Specified by:
setTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
getLoadBalancingStrategy
public org.refcodes.web.LoadBalancingStrategy getLoadBalancingStrategy()- Specified by:
getLoadBalancingStrategy
in interfaceorg.refcodes.web.LoadBalancingStrategyAccessor
-
setLoadBalancingStrategy
public void setLoadBalancingStrategy(org.refcodes.web.LoadBalancingStrategy aStrategy) - Specified by:
setLoadBalancingStrategy
in interfaceorg.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
-