Class HttpDiscoveryContextBuilder

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.
  • Constructor Details

    • HttpDiscoveryContextBuilder

      public HttpDiscoveryContextBuilder(org.refcodes.web.Url aDiscoveryUrl)
      Constructs the HttpDiscoveryContextBuilder context.
      Parameters:
      aDiscoveryUrl - The Url pointing to the service discovery registry.
    • HttpDiscoveryContextBuilder

      public HttpDiscoveryContextBuilder(org.refcodes.web.Url aDiscoveryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
      Constructs the HttpDiscoveryContextBuilder context.
      Parameters:
      aDiscoveryUrl - The Url 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 interface org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryContextBuilder>
    • withHttpDiscoveryUrl

      public HttpDiscoveryContextBuilder withHttpDiscoveryUrl(org.refcodes.web.Url aUrl)
      Sets the URL for the URL property locating the service discovery discovery.
      Specified by:
      withHttpDiscoveryUrl in interface HttpDiscoveryUrlAccessor.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 interface org.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 interface HttpDiscoveryUrlAccessor
      Returns:
      The URL stored by the URL property.
    • getTrustStoreDescriptor

      public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()
      Specified by:
      getTrustStoreDescriptor in interface org.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 interface HttpDiscoveryUrlAccessor.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 interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
    • getLoadBalancingStrategy

      public org.refcodes.web.LoadBalancingStrategy getLoadBalancingStrategy()
      Specified by:
      getLoadBalancingStrategy in interface org.refcodes.web.LoadBalancingStrategyAccessor
    • setLoadBalancingStrategy

      public void setLoadBalancingStrategy(org.refcodes.web.LoadBalancingStrategy aStrategy)
      Specified by:
      setLoadBalancingStrategy in interface org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator