Package org.refcodes.rest
Class AbstractHttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
- java.lang.Object
-
- org.refcodes.rest.AbstractHttpRegistryContextBuilder<DESC>
-
- All Implemented Interfaces:
HttpRegistryContext.HttpRegistryContextBuilder<DESC>,HttpRegistryUrlAccessor,HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<DESC>,HttpRegistryUrlAccessor.HttpRegistryUrlMutator,HttpRegistryUrlAccessor.HttpRegistryUrlProperty,HttpServerDescriptorAccessor<DESC>,HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,HttpRegistryContext.HttpRegistryContextBuilder<DESC>>,HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>,HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC>,PingRequestObserverAccessor,PingRequestObserverAccessor.PingRequestObserverBuilder<DESC>,PingRequestObserverAccessor.PingRequestObserverMutator,PingRequestObserverAccessor.PingRequestObserverProperty,org.refcodes.security.TrustStoreDescriptorAccessor,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC>,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
public abstract class AbstractHttpRegistryContextBuilder<DESC extends HttpServerDescriptor> extends java.lang.Object implements HttpRegistryContext.HttpRegistryContextBuilder<DESC>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor
HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlProperty
-
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor
HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends HttpServerDescriptor,B extends HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>>, HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends HttpServerDescriptor>, HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC extends HttpServerDescriptor>
-
Nested classes/interfaces inherited from interface org.refcodes.rest.PingRequestObserverAccessor
PingRequestObserverAccessor.PingRequestObserverBuilder<B extends PingRequestObserverAccessor.PingRequestObserverBuilder<B>>, PingRequestObserverAccessor.PingRequestObserverMutator, PingRequestObserverAccessor.PingRequestObserverProperty
-
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
Constructors Constructor Description AbstractHttpRegistryContextBuilder(org.refcodes.net.Url aRegistryUrl, DESC aServerDescriptor)Constructs theAbstractHttpRegistryContextBuildercontext.AbstractHttpRegistryContextBuilder(org.refcodes.net.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor)Constructs theAbstractHttpRegistryContextBuildercontext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.net.UrlgetHttpRegistryUrl()Retrieves the URL from the URL property locating the service registry registry.DESCgetHttpServerDescriptor()Retrieves theHttpServerDescriptorfrom theHttpServerDescriptorproperty.org.refcodes.security.TrustStoreDescriptorgetTrustStoreDescriptor()voidsetHttpRegistryUrl(org.refcodes.net.Url aRegistryUrl)Sets the URL for the URL property locating the service registry registry.voidsetHttpServerDescriptor(DESC aServerDescriptor)Sets theHttpServerDescriptorfor theHttpServerDescriptorproperty.voidsetTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)HttpRegistryContext.HttpRegistryContextBuilder<DESC>withHttpRegistryUrl(org.refcodes.net.Url aUrl)Sets the URL for the URL property locating the service registry registry.HttpRegistryContext.HttpRegistryContextBuilder<DESC>withHttpServerDescriptor(DESC aServerDescriptor)Sets theHttpServerDescriptorfor theHttpServerDescriptorproperty.HttpRegistryContext.HttpRegistryContextBuilder<DESC>withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)-
Methods inherited from interface org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder
withPingRequestObserver
-
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.PingRequestObserverAccessor
getPingRequestObserver
-
Methods inherited from interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator
setPingRequestObserver
-
-
-
-
Constructor Detail
-
AbstractHttpRegistryContextBuilder
public AbstractHttpRegistryContextBuilder(org.refcodes.net.Url aRegistryUrl, DESC aServerDescriptor)Constructs theAbstractHttpRegistryContextBuildercontext.- Parameters:
aRegistryUrl- TheUrlpointing to the service discovery registry.aServerDescriptor- THe descriptor describing the server ("service") to be discovered.
-
AbstractHttpRegistryContextBuilder
public AbstractHttpRegistryContextBuilder(org.refcodes.net.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor)Constructs theAbstractHttpRegistryContextBuildercontext.- Parameters:
aRegistryUrl- TheUrlpointing to the service discovery registry.aStoreDescriptor- The descriptor describing the truststore (KeyStore) required for establishing an HTTPS connection to the registry.aServerDescriptor- THe descriptor describing the server ("service") to be discovered.
-
-
Method Detail
-
getHttpRegistryUrl
public org.refcodes.net.Url getHttpRegistryUrl()
Retrieves the URL from the URL property locating the service registry registry.- Specified by:
getHttpRegistryUrlin interfaceHttpRegistryUrlAccessor- Returns:
- The URL stored by the URL property.
-
getHttpServerDescriptor
public DESC getHttpServerDescriptor()
Retrieves theHttpServerDescriptorfrom theHttpServerDescriptorproperty.- Specified by:
getHttpServerDescriptorin interfaceHttpServerDescriptorAccessor<DESC extends HttpServerDescriptor>- Returns:
- The
HttpServerDescriptorstored by theHttpServerDescriptorproperty.
-
getTrustStoreDescriptor
public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()
- Specified by:
getTrustStoreDescriptorin interfaceorg.refcodes.security.TrustStoreDescriptorAccessor
-
setHttpRegistryUrl
public void setHttpRegistryUrl(org.refcodes.net.Url aRegistryUrl)
Description copied from interface:HttpRegistryUrlAccessor.HttpRegistryUrlMutatorSets the URL for the URL property locating the service registry registry.- Specified by:
setHttpRegistryUrlin interfaceHttpRegistryUrlAccessor.HttpRegistryUrlMutator- Parameters:
aRegistryUrl- The service registry registry URL to be stored by the URL property.
-
setHttpServerDescriptor
public void setHttpServerDescriptor(DESC aServerDescriptor)
Description copied from interface:HttpServerDescriptorAccessor.HttpServerDescriptorMutatorSets theHttpServerDescriptorfor theHttpServerDescriptorproperty.- Specified by:
setHttpServerDescriptorin interfaceHttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends HttpServerDescriptor>- Parameters:
aServerDescriptor- TheHttpServerDescriptorto be stored by theHttpServerDescriptorproperty.
-
setTrustStoreDescriptor
public void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
- Specified by:
setTrustStoreDescriptorin interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
withHttpRegistryUrl
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withHttpRegistryUrl(org.refcodes.net.Url aUrl)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilderSets the URL for the URL property locating the service registry registry.- Specified by:
withHttpRegistryUrlin interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>- Specified by:
withHttpRegistryUrlin interfaceHttpRegistryUrlAccessor.HttpRegistryUrlBuilder<DESC extends HttpServerDescriptor>- Parameters:
aUrl- The service registry registry URL to be stored by the URL property.- Returns:
- The builder for applying multiple build operations.
-
withHttpServerDescriptor
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withHttpServerDescriptor(DESC aServerDescriptor)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilderSets theHttpServerDescriptorfor theHttpServerDescriptorproperty.- Specified by:
withHttpServerDescriptorin interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>- Specified by:
withHttpServerDescriptorin interfaceHttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends HttpServerDescriptor,HttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>>- Parameters:
aServerDescriptor- TheHttpServerDescriptorto be stored by theHttpServerDescriptorproperty.- Returns:
- The builder for applying multiple build operations.
-
withTrustStoreDescriptor
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilder- Specified by:
withTrustStoreDescriptorin interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>- Specified by:
withTrustStoreDescriptorin interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC extends HttpServerDescriptor>
-
-