Class EurekaRegistryContext

  • All Implemented Interfaces:
    org.refcodes.rest.HomeRequestObserverAccessor, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<EurekaRegistryContext>, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverMutator, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverProperty, org.refcodes.rest.HttpRegistryContext<EurekaServerDescriptor>, org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>, org.refcodes.rest.HttpRegistryUrlAccessor, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>>, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty, org.refcodes.rest.HttpServerDescriptorAccessor<EurekaServerDescriptor>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<EurekaServerDescriptor,​org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<EurekaServerDescriptor>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<EurekaServerDescriptor>, org.refcodes.rest.PingRequestObserverAccessor, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>>, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverProperty, org.refcodes.rest.StatusRequestObserverAccessor, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<EurekaRegistryContext>, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverMutator, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverProperty, org.refcodes.security.TrustStoreDescriptorAccessor, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty

    public class EurekaRegistryContext
    extends Object
    implements org.refcodes.rest.HttpRegistryContext<EurekaServerDescriptor>, org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<EurekaServerDescriptor>, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverProperty, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<EurekaRegistryContext>, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverProperty, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<EurekaRegistryContext>
    Implementation of the EurekaRegistryContext representing a waschechten EurekaRegistryContext being a specialization of the HttpRegistryContext.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.rest.HomeRequestObserverAccessor

        org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<B extends org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<B>>, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverMutator, org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverProperty
      • Nested classes/interfaces inherited from interface org.refcodes.rest.HttpRegistryContext

        org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder<DESC extends org.refcodes.rest.HttpServerDescriptor>
      • Nested classes/interfaces inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor

        org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator, org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
      • Nested classes/interfaces inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor

        org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends org.refcodes.rest.HttpServerDescriptor,​B extends org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,​B>>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends org.refcodes.rest.HttpServerDescriptor>, org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC extends org.refcodes.rest.HttpServerDescriptor>
      • Nested classes/interfaces inherited from interface org.refcodes.rest.PingRequestObserverAccessor

        org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<B extends org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverBuilder<B>>, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator, org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverProperty
      • Nested classes/interfaces inherited from interface org.refcodes.rest.StatusRequestObserverAccessor

        org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<B extends org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<B>>, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverMutator, org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverProperty
      • 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 Detail

      • EurekaRegistryContext

        public EurekaRegistryContext​(EurekaServerDescriptor aServerDescriptor,
                                     org.refcodes.web.Url aRegistryUrl,
                                     org.refcodes.rest.RestRequestConsumer aPingRequestObserver,
                                     org.refcodes.rest.RestRequestConsumer aStatusRequestObserver,
                                     org.refcodes.rest.RestRequestConsumer aHomeRequestObserver,
                                     org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
        Constructs an EurekaRegistryContext instance.
        Parameters:
        aServerDescriptor - The descriptor describing the server.
        aRegistryUrl - The Url pointing to the registry service.
        aPingRequestObserver - The ping (health) request observer.
        aStatusRequestObserver - The status(-page) observer.
        aHomeRequestObserver - The home(-page) observer.
        aStoreDescriptor - The trust store descriptor describing the trust store to be used when requesting the registry service.
    • Method Detail

      • getHomeRequestConsumer

        public org.refcodes.rest.RestRequestConsumer getHomeRequestConsumer()
        Specified by:
        getHomeRequestConsumer in interface org.refcodes.rest.HomeRequestObserverAccessor
      • getHttpRegistryUrl

        public org.refcodes.web.Url getHttpRegistryUrl()
        Specified by:
        getHttpRegistryUrl in interface org.refcodes.rest.HttpRegistryUrlAccessor
      • getPingRequestObserver

        public org.refcodes.rest.RestRequestConsumer getPingRequestObserver()
        Specified by:
        getPingRequestObserver in interface org.refcodes.rest.PingRequestObserverAccessor
      • getStatusRequestConsumer

        public org.refcodes.rest.RestRequestConsumer getStatusRequestConsumer()
        Specified by:
        getStatusRequestConsumer in interface org.refcodes.rest.StatusRequestObserverAccessor
      • getTrustStoreDescriptor

        public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()
        Specified by:
        getTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessor
      • setHomeRequestObserver

        public void setHomeRequestObserver​(org.refcodes.rest.RestRequestConsumer aHomeRequestObserver)
        Specified by:
        setHomeRequestObserver in interface org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverMutator
      • setHttpRegistryUrl

        public void setHttpRegistryUrl​(org.refcodes.web.Url aRegistryUrl)
        Specified by:
        setHttpRegistryUrl in interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlMutator
      • setHttpServerDescriptor

        public void setHttpServerDescriptor​(EurekaServerDescriptor aServerDescriptor)
        Specified by:
        setHttpServerDescriptor in interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorMutator<EurekaServerDescriptor>
      • setPingRequestObserver

        public void setPingRequestObserver​(org.refcodes.rest.RestRequestConsumer aPingRequestObserver)
        Specified by:
        setPingRequestObserver in interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator
      • setStatusRequestObserver

        public void setStatusRequestObserver​(org.refcodes.rest.RestRequestConsumer aStatusRequestObserver)
        Specified by:
        setStatusRequestObserver in interface org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverMutator
      • setTrustStoreDescriptor

        public void setTrustStoreDescriptor​(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor)
        Specified by:
        setTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
      • withHomeRequestConsumer

        public EurekaRegistryContext withHomeRequestConsumer​(org.refcodes.rest.RestRequestConsumer aRequestObserver)
        Specified by:
        withHomeRequestConsumer in interface org.refcodes.rest.HomeRequestObserverAccessor.HomeRequestObserverBuilder<EurekaRegistryContext>
      • withStatusRequestConsumer

        public EurekaRegistryContext withStatusRequestConsumer​(org.refcodes.rest.RestRequestConsumer aRequestObserver)
        Specified by:
        withStatusRequestConsumer in interface org.refcodes.rest.StatusRequestObserverAccessor.StatusRequestObserverBuilder<EurekaRegistryContext>