Module org.refcodes.rest
Package org.refcodes.rest
Class AbstractHttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
java.lang.Object
org.refcodes.rest.AbstractHttpRegistryContextBuilder<DESC>
- Type Parameters:
DESC- the generic type
- All Implemented Interfaces:
HttpRegistryContext.HttpRegistryContextBuilder<DESC>,HttpRegistryUrlAccessor,HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<HttpRegistryContext.HttpRegistryContextBuilder<DESC>>,HttpRegistryUrlAccessor.HttpRegistryUrlMutator,HttpRegistryUrlAccessor.HttpRegistryUrlProperty,HttpServerDescriptorAccessor<DESC>,HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,,HttpRegistryContext.HttpRegistryContextBuilder<DESC>> HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>,HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC>,PingRequestObserverAccessor,PingRequestObserverAccessor.PingRequestObserverBuilder<HttpRegistryContext.HttpRegistryContextBuilder<DESC>>,PingRequestObserverAccessor.PingRequestObserverMutator,PingRequestObserverAccessor.PingRequestObserverProperty,org.refcodes.security.TrustStoreDescriptorAccessor,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpRegistryContext.HttpRegistryContextBuilder<DESC>>,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
public abstract class AbstractHttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
extends Object
implements HttpRegistryContext.HttpRegistryContextBuilder<DESC>
The Class AbstractHttpRegistryContextBuilder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor
HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlPropertyNested 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.PingRequestObserverPropertyNested 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
ConstructorsConstructorDescriptionAbstractHttpRegistryContextBuilder(org.refcodes.web.Url aRegistryUrl, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuildercontext.AbstractHttpRegistryContextBuilder(org.refcodes.web.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuildercontext. -
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.web.UrlRetrieves the URL from the URL property locating the service registry registry.Retrieves theHttpServerDescriptorfrom theHttpServerDescriptorproperty.org.refcodes.security.TrustStoreDescriptorvoidsetHttpRegistryUrl(org.refcodes.web.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 aTrustStoreDescriptor) withHttpRegistryUrl(org.refcodes.web.Url aUrl) Sets the URL for the URL property locating the service registry registry.withHttpServerDescriptor(DESC aServerDescriptor) Sets theHttpServerDescriptorfor theHttpServerDescriptorproperty.withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.rest.HttpRegistryContext.HttpRegistryContextBuilder
withPingRequestObserverMethods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
letHttpRegistryUrlMethods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty
letHttpServerDescriptorMethods inherited from interface org.refcodes.rest.PingRequestObserverAccessor
getPingRequestObserverMethods inherited from interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator
setPingRequestObserverMethods inherited from interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverProperty
letPingRequestObserverMethods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
-
Constructor Details
-
AbstractHttpRegistryContextBuilder
public AbstractHttpRegistryContextBuilder(org.refcodes.web.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.web.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 Details
-
getHttpRegistryUrl
public org.refcodes.web.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
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.web.Url aRegistryUrl) Sets 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
Sets 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 aTrustStoreDescriptor) - Specified by:
setTrustStoreDescriptorin interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
withHttpRegistryUrl
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withHttpRegistryUrl(org.refcodes.web.Url aUrl) Sets 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) Sets 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) - Specified by:
withTrustStoreDescriptorin interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>- Specified by:
withTrustStoreDescriptorin interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC extends HttpServerDescriptor>
-