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.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
ConstructorDescriptionAbstractHttpRegistryContextBuilder
(org.refcodes.web.Url aRegistryUrl, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuilder
context.AbstractHttpRegistryContextBuilder
(org.refcodes.web.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuilder
context. -
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.web.Url
Retrieves the URL from the URL property locating the service registry registry.Retrieves theHttpServerDescriptor
from theHttpServerDescriptor
property.org.refcodes.security.TrustStoreDescriptor
void
setHttpRegistryUrl
(org.refcodes.web.Url aRegistryUrl) Sets the URL for the URL property locating the service registry registry.void
setHttpServerDescriptor
(DESC aServerDescriptor) Sets theHttpServerDescriptor
for theHttpServerDescriptor
property.void
setTrustStoreDescriptor
(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 theHttpServerDescriptor
for theHttpServerDescriptor
property.withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) 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.HttpRegistryContext.HttpRegistryContextBuilder
withPingRequestObserver
Methods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
letHttpRegistryUrl
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty
letHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.PingRequestObserverAccessor
getPingRequestObserver
Methods inherited from interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverMutator
setPingRequestObserver
Methods inherited from interface org.refcodes.rest.PingRequestObserverAccessor.PingRequestObserverProperty
letPingRequestObserver
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
-
Constructor Details
-
AbstractHttpRegistryContextBuilder
public AbstractHttpRegistryContextBuilder(org.refcodes.web.Url aRegistryUrl, DESC aServerDescriptor) Constructs theAbstractHttpRegistryContextBuilder
context.- Parameters:
aRegistryUrl
- TheUrl
pointing 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 theAbstractHttpRegistryContextBuilder
context.- Parameters:
aRegistryUrl
- TheUrl
pointing 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:
getHttpRegistryUrl
in interfaceHttpRegistryUrlAccessor
- Returns:
- The URL stored by the URL property.
-
getHttpServerDescriptor
Retrieves theHttpServerDescriptor
from theHttpServerDescriptor
property.- Specified by:
getHttpServerDescriptor
in interfaceHttpServerDescriptorAccessor<DESC extends HttpServerDescriptor>
- Returns:
- The
HttpServerDescriptor
stored by theHttpServerDescriptor
property.
-
getTrustStoreDescriptor
public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()- Specified by:
getTrustStoreDescriptor
in 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:
setHttpRegistryUrl
in interfaceHttpRegistryUrlAccessor.HttpRegistryUrlMutator
- Parameters:
aRegistryUrl
- The service registry registry URL to be stored by the URL property.
-
setHttpServerDescriptor
Sets theHttpServerDescriptor
for theHttpServerDescriptor
property.- Specified by:
setHttpServerDescriptor
in interfaceHttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends HttpServerDescriptor>
- Parameters:
aServerDescriptor
- TheHttpServerDescriptor
to be stored by theHttpServerDescriptor
property.
-
setTrustStoreDescriptor
public void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor) - Specified by:
setTrustStoreDescriptor
in 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:
withHttpRegistryUrl
in interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
- Specified by:
withHttpRegistryUrl
in 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 theHttpServerDescriptor
for theHttpServerDescriptor
property.- Specified by:
withHttpServerDescriptor
in interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
- Specified by:
withHttpServerDescriptor
in interfaceHttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends HttpServerDescriptor,
HttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>> - Parameters:
aServerDescriptor
- TheHttpServerDescriptor
to be stored by theHttpServerDescriptor
property.- Returns:
- The builder for applying multiple build operations.
-
withTrustStoreDescriptor
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) - Specified by:
withTrustStoreDescriptor
in interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
- Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC extends HttpServerDescriptor>
-