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, TrustStoreDescriptorAccessor, TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<HttpRegistryContext.HttpRegistryContextBuilder<DESC>>, TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, 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 HttpRegistryUrlAccessor
HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlPropertyNested classes/interfaces inherited from interface HttpServerDescriptorAccessor
HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>, HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>, HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC> Nested classes/interfaces inherited from interface PingRequestObserverAccessor
PingRequestObserverAccessor.PingRequestObserverBuilder<B>, PingRequestObserverAccessor.PingRequestObserverMutator, PingRequestObserverAccessor.PingRequestObserverPropertyNested classes/interfaces inherited from interface TrustStoreDescriptorAccessor
TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>, TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHttpRegistryContextBuilder(Url aRegistryUrl, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuildercontext.AbstractHttpRegistryContextBuilder(Url aRegistryUrl, TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuildercontext. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the URL from the URL property locating the service registry registry.Retrieves theHttpServerDescriptorfrom theHttpServerDescriptorproperty.voidsetHttpRegistryUrl(Url aRegistryUrl) Sets the URL for the URL property locating the service registry registry.voidsetHttpServerDescriptor(DESC aServerDescriptor) Sets theHttpServerDescriptorfor theHttpServerDescriptorproperty.voidsetTrustStoreDescriptor(TrustStoreDescriptor aTrustStoreDescriptor) withHttpRegistryUrl(Url aUrl) Sets the URL for the URL property locating the service registry registry.withHttpServerDescriptor(DESC aServerDescriptor) Sets theHttpServerDescriptorfor theHttpServerDescriptorproperty.withTrustStoreDescriptor(TrustStoreDescriptor aStoreDescriptor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpRegistryContext.HttpRegistryContextBuilder
withPingRequestObserverMethods inherited from interface HttpRegistryUrlAccessor.HttpRegistryUrlProperty
letHttpRegistryUrlMethods inherited from interface HttpServerDescriptorAccessor.HttpServerDescriptorProperty
letHttpServerDescriptorMethods inherited from interface PingRequestObserverAccessor
getPingRequestObserverMethods inherited from interface PingRequestObserverAccessor.PingRequestObserverMutator
setPingRequestObserverMethods inherited from interface PingRequestObserverAccessor.PingRequestObserverProperty
letPingRequestObserverMethods inherited from interface TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
-
Constructor Details
-
AbstractHttpRegistryContextBuilder
Constructs theAbstractHttpRegistryContextBuildercontext.- Parameters:
aRegistryUrl- TheUrlpointing to the service discovery registry.aServerDescriptor- The descriptor describing the server ("service") to be discovered.
-
AbstractHttpRegistryContextBuilder
public AbstractHttpRegistryContextBuilder(Url aRegistryUrl, TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuildercontext.
-
-
Method Details
-
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
- Specified by:
getTrustStoreDescriptorin interfaceTrustStoreDescriptorAccessor
-
setHttpRegistryUrl
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
- Specified by:
setTrustStoreDescriptorin interfaceTrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
withHttpRegistryUrl
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(TrustStoreDescriptor aStoreDescriptor) - Specified by:
withTrustStoreDescriptorin interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>- Specified by:
withTrustStoreDescriptorin interfaceTrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC extends HttpServerDescriptor>
-