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<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 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 theAbstractHttpRegistryContextBuilder
context.AbstractHttpRegistryContextBuilder(org.refcodes.net.Url aRegistryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor, DESC aServerDescriptor)
Constructs theAbstractHttpRegistryContextBuilder
context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.net.Url
getHttpRegistryUrl()
Retrieves the URL from the URL property locating the service registry registry.DESC
getHttpServerDescriptor()
Retrieves theHttpServerDescriptor
from theHttpServerDescriptor
property.org.refcodes.security.TrustStoreDescriptor
getTrustStoreDescriptor()
void
setHttpRegistryUrl(org.refcodes.net.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 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 theHttpServerDescriptor
for theHttpServerDescriptor
property.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 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.net.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 Detail
-
getHttpRegistryUrl
public org.refcodes.net.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
public DESC 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.net.Url aRegistryUrl)
Description copied from interface:HttpRegistryUrlAccessor.HttpRegistryUrlMutator
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
public void setHttpServerDescriptor(DESC aServerDescriptor)
Description copied from interface:HttpServerDescriptorAccessor.HttpServerDescriptorMutator
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 aStoreDescriptor)
- Specified by:
setTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
withHttpRegistryUrl
public HttpRegistryContext.HttpRegistryContextBuilder<DESC> withHttpRegistryUrl(org.refcodes.net.Url aUrl)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilder
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)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilder
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)
Description copied from interface:HttpRegistryContext.HttpRegistryContextBuilder
- Specified by:
withTrustStoreDescriptor
in interfaceHttpRegistryContext.HttpRegistryContextBuilder<DESC extends HttpServerDescriptor>
- Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC extends HttpServerDescriptor>
-
-