Module org.refcodes.rest
Package org.refcodes.rest
Class AbstractHttpRegistryRestServerDecorator<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>
java.lang.Object
org.refcodes.rest.AbstractHttpRestServerDecorator<B>
org.refcodes.rest.AbstractHttpRegistryRestServerDecorator<DESC,B>
- All Implemented Interfaces:
org.refcodes.component.Closable
,org.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
,HttpRestServer>> org.refcodes.component.Configurable<HttpRegistryContext<DESC>>
,org.refcodes.component.ConnectionComponent<org.refcodes.web.HttpServerContext>
,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,
,HttpRestServer> org.refcodes.component.ConnectionOpenable<org.refcodes.web.HttpServerContext>
,org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,
,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext, HttpRestServer>> org.refcodes.component.ConnectionStatusAccessor
,org.refcodes.component.Destroyable
,org.refcodes.component.Destroyable.DestroyAutomaton
,org.refcodes.component.Initializable
,org.refcodes.component.Initializable.InitializeAutomaton
,org.refcodes.component.InitializedAccessor
,org.refcodes.component.LifecycleComponent
,org.refcodes.component.LifecycleComponent.LifecycleAutomaton
,org.refcodes.component.LifecycleStatusAccessor
,org.refcodes.component.LinkComponent
,org.refcodes.component.Openable
,org.refcodes.component.OpenedAccessor
,org.refcodes.component.Pausable
,org.refcodes.component.Pausable.PauseAutomaton
,org.refcodes.component.Resumable
,org.refcodes.component.Resumable.ResumeAutomaton
,org.refcodes.component.RunningAccessor
,org.refcodes.component.Startable
,org.refcodes.component.Startable.StartAutomaton
,org.refcodes.component.Stoppable
,org.refcodes.component.Stoppable.StopAutomaton
,org.refcodes.io.MaxConnectionsAccessor
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpRestServer>
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
,org.refcodes.mixin.AliasAccessor
,org.refcodes.mixin.AliasAccessor.AliasBuilder<B>
,org.refcodes.mixin.AliasAccessor.AliasMutator
,org.refcodes.mixin.AliasAccessor.AliasProperty
,org.refcodes.mixin.InstanceIdAccessor
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
,org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
,org.refcodes.mixin.PortAccessor
,org.refcodes.mixin.PortAccessor.PortBuilder<HttpRestServer>
,org.refcodes.mixin.PortAccessor.PortMutator
,org.refcodes.mixin.PortAccessor.PortProperty
,org.refcodes.net.IpAddressAccessor
,org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>
,org.refcodes.net.IpAddressAccessor.IpAddressMutator
,org.refcodes.net.IpAddressAccessor.IpAddressProperty
,org.refcodes.observer.Observable<RestEndpoint>
,org.refcodes.observer.Observers<RestEndpoint,
,RestServer> HttpExceptionHandlerAccessor
,HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<RestServer>
,HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
,HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
,HttpExceptionHandlingAccessor
,HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<RestServer>
,HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
,HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
,HttpRegistry<DESC,
,B> HttpRegistryRestServer<DESC,
,B> HttpRegistryUrlAccessor
,HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>
,HttpRegistryUrlAccessor.HttpRegistryUrlMutator
,HttpRegistryUrlAccessor.HttpRegistryUrlProperty
,HttpRestServer
,HttpServerDescriptorAccessor<DESC>
,HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,
,B> HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>
,HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC>
,HttpServerDescriptorFactory<DESC>
,PingPathAccessor
,PingPathAccessor.PingPathBuilder<B>
,PingPathAccessor.PingPathMutator
,PingPathAccessor.PingPathProperty
,PingRequestObserver
,PingRequestObserverAccessor
,PingRequestObserverAccessor.PingRequestObserverBuilder<B>
,RestServer
,org.refcodes.runtime.RequestCorrelation<RestServer>
,org.refcodes.runtime.SessionCorrelation<RestServer>
,org.refcodes.security.KeyStoreDescriptorAccessor
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpRestServer>
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
,org.refcodes.security.TrustStoreDescriptorAccessor
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
,org.refcodes.web.BaseLocatorAccessor
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<RestServer>
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
,org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
,org.refcodes.web.BasicAuthObservable<HttpRestServer>
,org.refcodes.web.HostAccessor
,org.refcodes.web.HostAccessor.HostBuilder<B>
,org.refcodes.web.HostAccessor.HostMutator
,org.refcodes.web.HostAccessor.HostProperty
,org.refcodes.web.HttpsConnectionRequestObservable<HttpRestServer>
,org.refcodes.web.MediaTypeFactoryLookup
,org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
,org.refcodes.web.RealmAccessor
,org.refcodes.web.RealmAccessor.RealmBuilder<RestServer>
,org.refcodes.web.RealmAccessor.RealmMutator
,org.refcodes.web.RealmAccessor.RealmProperty
,org.refcodes.web.SchemeAccessor
,org.refcodes.web.SchemeAccessor.SchemeBuilder<HttpRestServer>
,org.refcodes.web.SchemeAccessor.SchemeMutator
,org.refcodes.web.SchemeAccessor.SchemeProperty
,org.refcodes.web.VirtualHostAccessor
,org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<B>
,org.refcodes.web.VirtualHostAccessor.VirtualHostMutator
,org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
public abstract class AbstractHttpRegistryRestServerDecorator<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>
extends AbstractHttpRestServerDecorator<B>
implements HttpRegistryRestServer<DESC,B>
Abstract class for easily decorating a
HttpRegistryRestServer
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.web.BaseLocatorAccessor
org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.component.Configurable
org.refcodes.component.Configurable.ConfigureAutomaton<CTX extends Object>, org.refcodes.component.Configurable.ConfigureBuilder<CTX extends Object,
B extends org.refcodes.component.Configurable.ConfigureBuilder<CTX, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionComponent
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,
B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,
B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON, B>> Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
org.refcodes.component.Destroyable.DestroyAutomaton
Nested classes/interfaces inherited from interface org.refcodes.web.HostAccessor
org.refcodes.web.HostAccessor.HostBuilder<B extends org.refcodes.web.HostAccessor.HostBuilder<?>>, org.refcodes.web.HostAccessor.HostMutator, org.refcodes.web.HostAccessor.HostProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor
HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor
HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
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.component.Initializable
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
Nested classes/interfaces inherited from interface org.refcodes.component.InitializedAccessor
org.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.InstanceIdAccessor
org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
Nested classes/interfaces inherited from interface org.refcodes.net.IpAddressAccessor
org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.net.IpAddressAccessor.IpAddressMutator, org.refcodes.net.IpAddressAccessor.IpAddressProperty
Nested classes/interfaces inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
Nested classes/interfaces inherited from interface org.refcodes.component.LifecycleComponent
org.refcodes.component.LifecycleComponent.LifecycleAutomaton, org.refcodes.component.LifecycleComponent.UncheckedLifecycleComponent
Nested classes/interfaces inherited from interface org.refcodes.component.LifecycleStatusAccessor
org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusBuilder<B extends org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusBuilder<B>>, org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusMutator, org.refcodes.component.LifecycleStatusAccessor.LifecycleStatusProperty
Nested classes/interfaces inherited from interface org.refcodes.component.LinkComponent
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.io.MaxConnectionsAccessor
org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
Nested classes/interfaces inherited from interface org.refcodes.web.MediaTypeFactoryLookup
org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
Nested classes/interfaces inherited from interface org.refcodes.component.Openable
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
Nested classes/interfaces inherited from interface org.refcodes.component.OpenedAccessor
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Pausable
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
Nested classes/interfaces inherited from interface org.refcodes.rest.PingPathAccessor
PingPathAccessor.PingPathBuilder<B extends PingPathAccessor.PingPathBuilder<?>>, PingPathAccessor.PingPathMutator, PingPathAccessor.PingPathProperty
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.mixin.PortAccessor
org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
Nested classes/interfaces inherited from interface org.refcodes.web.RealmAccessor
org.refcodes.web.RealmAccessor.RealmBuilder<B extends org.refcodes.web.RealmAccessor.RealmBuilder<B>>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Resumable
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
Nested classes/interfaces inherited from interface org.refcodes.component.RunningAccessor
org.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningProperty
Nested classes/interfaces inherited from interface org.refcodes.web.SchemeAccessor
org.refcodes.web.SchemeAccessor.SchemeBuilder<B extends org.refcodes.web.SchemeAccessor.SchemeBuilder<B>>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
Nested classes/interfaces inherited from interface org.refcodes.component.Startable
org.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
Nested classes/interfaces inherited from interface org.refcodes.component.Stoppable
org.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
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
Nested classes/interfaces inherited from interface org.refcodes.web.VirtualHostAccessor
org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.refcodes.component.LifecycleAutomatonImpl.ManualLifecycleAutomatonImpl
protected RestRequestConsumer
Fields inherited from class org.refcodes.rest.AbstractHttpRestServerDecorator
_server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
This server is taken (removed) from the registry server.getAlias()
getHost()
org.refcodes.web.Url
Retrieves the URL from the URL property locating the service registry registry.Retrieves theHttpServerDescriptor
from theHttpServerDescriptor
property.int[]
org.refcodes.component.LifecycleStatus
Retrieves the ping path from the ping path property.Retrieves the pingRestRequestConsumer
from the pingRestRequestConsumer
property.org.refcodes.security.TrustStoreDescriptor
void
Initializes theHttpRegistry
by registering it at the service registry with a status such as "starting" or "initializing" or "not-ready-yet".boolean
boolean
boolean
boolean
boolean
boolean
isPaused()
boolean
boolean
boolean
boolean
boolean
void
onPingRequest
(RestRequestConsumer aRequestConsumer) Sets the pingRestRequestConsumer
listening for "ping" requests.void
pause()
Some "deactivated" status is communicated to the registry server.void
resume()
Some "up-and-running (again)" status is communicated to the registry server.void
void
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
setInstanceId
(String aInstanceId) void
setIpAddress
(int[] aIpAddress) void
setPingPath
(String aPingPath) Sets the ping path for the ping path property.void
setTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor) void
setVirtualHost
(String aVirtualHost) void
start()
Some "up-and-running" status is communicated to the registry server.void
stop()
Some "out-of-order" status is communicated to the registry server.protected String
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected String
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected org.refcodes.web.Url
toHttpRegistryUrl
(org.refcodes.web.Url aRegistryUrl) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected DESC
toHttpServerDescriptor
(DESC aServerDescriptor) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected String
toInstanceId
(String aInstanceId, String aHost) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected int[]
toIpAddress
(int[] aIpAddress) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected RestRequestConsumer
toPingObserver
(RestRequestConsumer aPingRequestObserver) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected String
toPingPath
(String aPingPath, String aDefaultPingPath) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected int
toPort
(int aPort) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected org.refcodes.data.Scheme
toScheme
(org.refcodes.data.Scheme aScheme) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected org.refcodes.security.TrustStoreDescriptor
toTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.protected String
toVirtualHost
(String aVirtualHost) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.Methods inherited from class org.refcodes.rest.AbstractHttpRestServerDecorator
addMediaTypeFactory, close, closeIn, closeQuietly, closeUnchecked, disableRequestCorrelation, disableSessionCorrelation, enableRequestCorrelation, enableSessionCorrelation, getBaseLocator, getFactoryMediaTypes, getKeyStoreDescriptor, getMaxConnections, getPort, getRealm, getScheme, hasMediaTypeFactory, hasObserverSubscription, hasRequestCorrelation, hasSessionCorrelation, observers, onBasicAuthRequest, onConnectionRequest, onDelete, onDelete, onGet, onGet, onPost, onPost, onPut, onPut, onRequest, onRequest, onRequest, onRequest, onRequest, open, open, open, open, openUnchecked, setBaseLocator, setKeyStoreDescriptor, setMaxConnections, setPort, setProtocol, setRealm, setRequestCorrelation, setScheme, setSessionCorrelation, subscribeObserver, toMediaTypeFactory, toProtocol, unsubscribeObserver, withBaseLocator, withClose, withCloseIn, withCloseQuietly, withCloseUnchecked, withDisableRequestCorrelation, withDisableSessionCorrelation, withEnableRequestCorrelation, withEnableSessionCorrelation, withOpen, withOpenUnchecked, withRealm, withRequestCorrelation, withSessionCorrelation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.AliasAccessor.AliasProperty
letAlias
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor
getBaseLocator
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
setBaseLocator
Methods inherited from interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
letBaseLocator
Methods inherited from interface org.refcodes.web.BasicAuthObservable
onBasicAuthRequest
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
Methods inherited from interface org.refcodes.component.Closable.CloseBuilder
withCloseUnchecked
Methods inherited from interface org.refcodes.component.Configurable
initializeUnchecked
Methods inherited from interface org.refcodes.component.ConnectionOpenable
openUnchecked
Methods inherited from interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder
withOpenUnchecked
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isOpened
Methods inherited from interface org.refcodes.web.HostAccessor.HostProperty
letHost
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor
getHttpExceptionHandler
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder
withOnHttpException
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
onHttpException, setHttpExceptionHandler
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
letHttpExceptionHandler
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor
getHttpExceptionHandling
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
setHttpExceptionHandling
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
letHttpExceptionHandling
Methods inherited from interface org.refcodes.rest.HttpRegistry
initialize, initialize, initialize, initialize, initialize, initialize, initialize, withAlias, withCidrNotation, withHost, withHttpRegistryUrl, withHttpServerDescriptor, withInstanceId, withIpAddress, withPingPath, withTrustStoreDescriptor, withVirtualHost
Methods inherited from interface org.refcodes.rest.HttpRegistryRestServer
initialize, initialize, withPingRequestObserver, withPort, withProtocol, withScheme
Methods inherited from interface org.refcodes.rest.HttpRegistryUrlAccessor.HttpRegistryUrlProperty
letHttpRegistryUrl
Methods inherited from interface org.refcodes.rest.HttpRestServer
open, open, open, open, open, open, open, open, open, open, open, open, open, withBaseLocator, withClose, withCloseIn, withCloseQuietly, withDisableRequestCorrelation, withDisableSessionCorrelation, withEnableRequestCorrelation, withEnableSessionCorrelation, withHttpExceptionHandler, withHttpExceptionHandling, withKeyStoreDescriptor, withMaxConnections, withOpen, withOpen, withRealm, withRequestCorrelation, withSessionCorrelation
Methods inherited from interface org.refcodes.web.HttpsConnectionRequestObservable
onConnectionRequest
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorAccessor.HttpServerDescriptorProperty
letHttpServerDescriptor
Methods inherited from interface org.refcodes.rest.HttpServerDescriptorFactory
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
Methods inherited from interface org.refcodes.component.Initializable
initializeUnchecked
Methods inherited from interface org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
letInstanceId
Methods inherited from interface org.refcodes.net.IpAddressAccessor
toCidrNotation
Methods inherited from interface org.refcodes.net.IpAddressAccessor.IpAddressMutator
fromCidrNotation
Methods inherited from interface org.refcodes.net.IpAddressAccessor.IpAddressProperty
letIpAddress
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
getKeyStoreDescriptor
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
setKeyStoreDescriptor
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
letKeyStoreDescriptor
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor
getMaxConnections
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
setMaxConnections
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
letMaxConnections
Methods inherited from interface org.refcodes.web.MediaTypeFactoryLookup
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
Methods inherited from interface org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
addMediaTypeFactory
Methods inherited from interface org.refcodes.observer.Observable
hasObserverSubscription, subscribeObserver, unsubscribeObserver
Methods inherited from interface org.refcodes.observer.Observers
disableObservers, enableObservers, isObserversActive, observers, setObserversActive
Methods inherited from interface org.refcodes.component.Openable
openUnchecked
Methods inherited from interface org.refcodes.component.Pausable
pauseUnchecked
Methods inherited from interface org.refcodes.rest.PingPathAccessor.PingPathProperty
letPingPath
Methods inherited from interface org.refcodes.mixin.PortAccessor
getPort
Methods inherited from interface org.refcodes.mixin.PortAccessor.PortMutator
setPort
Methods inherited from interface org.refcodes.mixin.PortAccessor.PortProperty
letPort
Methods inherited from interface org.refcodes.web.RealmAccessor
getRealm
Methods inherited from interface org.refcodes.web.RealmAccessor.RealmMutator
setRealm
Methods inherited from interface org.refcodes.web.RealmAccessor.RealmProperty
letRealm
Methods inherited from interface org.refcodes.runtime.RequestCorrelation
disableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelation
Methods inherited from interface org.refcodes.rest.RestServer
onDelete, onDelete, onGet, onGet, onPost, onPost, onPut, onPut, onRequest, onRequest, onRequest, onRequest, onRequest, withDisableObservers, withEnableObservers, withObserversActive
Methods inherited from interface org.refcodes.component.Resumable
resumeUnchecked
Methods inherited from interface org.refcodes.web.SchemeAccessor
getScheme, toProtocol
Methods inherited from interface org.refcodes.web.SchemeAccessor.SchemeMutator
setProtocol, setScheme
Methods inherited from interface org.refcodes.web.SchemeAccessor.SchemeProperty
letProtocol, letScheme
Methods inherited from interface org.refcodes.runtime.SessionCorrelation
disableSessionCorrelation, enableSessionCorrelation, hasSessionCorrelation, setSessionCorrelation
Methods inherited from interface org.refcodes.component.Startable
startUnchecked
Methods inherited from interface org.refcodes.component.Stoppable
stopUnchecked
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
Methods inherited from interface org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
letVirtualHost
-
Field Details
-
_lifeCycleAutomaton
protected org.refcodes.component.LifecycleAutomatonImpl.ManualLifecycleAutomatonImpl _lifeCycleAutomaton -
_pingRequestObserver
-
-
Constructor Details
-
AbstractHttpRegistryRestServerDecorator
Decorates the givenHttpRestServer
with discovery functionality.- Parameters:
aServer
- TheHttpRestServer
to be decorated.
-
-
Method Details
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.refcodes.component.RunningAccessor
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in interfaceorg.refcodes.component.InitializedAccessor
-
getLifecycleStatus
public org.refcodes.component.LifecycleStatus getLifecycleStatus()- Specified by:
getLifecycleStatus
in interfaceorg.refcodes.component.LifecycleStatusAccessor
-
pause
public void pause() throws org.refcodes.component.PauseExceptionSome "deactivated" status is communicated to the registry server. The registeredRestEndpoint
instances (observers) (e.g. viaRestEndpointBuilder
being registered e.g. viaRestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,RestServer.onPut(String, RestRequestConsumer)
orRestServer.onDelete(String, RestRequestConsumer)
is closed by calling itsRestEndpointBuilder.close()
) are disabled by callingObservers.disableObservers()
. Some "deactivated" status is communicated to the registry server.- Specified by:
pause
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
pause
in interfaceHttpRegistryRestServer<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
pause
in interfaceorg.refcodes.component.Pausable
- Throws:
org.refcodes.component.PauseException
-
stop
public void stop() throws org.refcodes.component.StopExceptionSome "out-of-order" status is communicated to the registry server. The registeredRestEndpoint
instances (observers) (e.g. viaRestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,RestServer.onPut(String, RestRequestConsumer)
orRestServer.onDelete(String, RestRequestConsumer)
) are disabled by callingObservers.disableObservers()
. Also stops a "ping" or "heartbeat" daemon. Some "out-of-order" status is communicated to the registry server. Also stops a "ping" or "heartbeat" daemon.- Specified by:
stop
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
stop
in interfaceHttpRegistryRestServer<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
stop
in interfaceorg.refcodes.component.Stoppable
- Throws:
org.refcodes.component.StopException
-
start
public void start() throws org.refcodes.component.StartExceptionSome "up-and-running" status is communicated to the registry server. The registeredRestEndpoint
instances (observers) (e.g. viaRestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,RestServer.onPut(String, RestRequestConsumer)
orRestServer.onDelete(String, RestRequestConsumer)
) are enabled by callingObservers.enableObservers()
. If necessary, the connection is opened viaHttpRestServer.open()
or the like. May also start a "ping" or "heartbeat" daemon. Some "up-and-running" status is communicated to the registry server. May also start a "ping" or "heartbeat" daemon.- Specified by:
start
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
start
in interfaceHttpRegistryRestServer<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
start
in interfaceorg.refcodes.component.Startable
- Throws:
org.refcodes.component.StartException
-
resume
public void resume() throws org.refcodes.component.ResumeExceptionSome "up-and-running (again)" status is communicated to the registry server. The registeredRestEndpoint
instances (observers) (e.g. viaRestEndpointBuilder
being registered e.g. viaRestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,RestServer.onPut(String, RestRequestConsumer)
orRestServer.onDelete(String, RestRequestConsumer)
is closed by calling itsRestEndpointBuilder.close()
) are enabled (again) by callingObservers.enableObservers()
. Some "up-and-running (again)" status is communicated to the registry server.- Specified by:
resume
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
resume
in interfaceHttpRegistryRestServer<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
resume
in interfaceorg.refcodes.component.Resumable
- Throws:
org.refcodes.component.ResumeException
-
initialize
public void initialize() throws org.refcodes.component.InitializeExceptionInitializes theHttpRegistry
by registering it at the service registry with a status such as "starting" or "initializing" or "not-ready-yet".- Specified by:
initialize
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
initialize
in interfaceorg.refcodes.component.Initializable
- Throws:
org.refcodes.component.InitializeException
-
isStoppable
public boolean isStoppable()- Specified by:
isStoppable
in interfaceorg.refcodes.component.Stoppable.StopAutomaton
-
isPausable
public boolean isPausable()- Specified by:
isPausable
in interfaceorg.refcodes.component.Pausable.PauseAutomaton
-
isStartable
public boolean isStartable()- Specified by:
isStartable
in interfaceorg.refcodes.component.Startable.StartAutomaton
-
isResumable
public boolean isResumable()- Specified by:
isResumable
in interfaceorg.refcodes.component.Resumable.ResumeAutomaton
-
isStopped
public boolean isStopped()- Specified by:
isStopped
in interfaceorg.refcodes.component.Stoppable.StopAutomaton
-
isPaused
public boolean isPaused()- Specified by:
isPaused
in interfaceorg.refcodes.component.Pausable.PauseAutomaton
-
isInitalizable
public boolean isInitalizable()- Specified by:
isInitalizable
in interfaceorg.refcodes.component.Initializable.InitializeAutomaton
-
destroy
public void destroy()This server is taken (removed) from the registry server. The registeredRestEndpoint
instances (observers) (e.g. viaRestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,RestServer.onPut(String, RestRequestConsumer)
orRestServer.onDelete(String, RestRequestConsumer)
) are disabled by callingObservers.disableObservers()
. Also stops a "ping" or "heartbeat" daemon. Finally the connection is closed viaClosable.close()
. This server is taken (removed) from the registry server. Also stops a "ping" or "heartbeat" daemon. Finally the connection is closed.- Specified by:
destroy
in interfaceorg.refcodes.component.Destroyable
- Specified by:
destroy
in interfaceHttpRegistry<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>> - Specified by:
destroy
in interfaceHttpRegistryRestServer<DESC extends HttpServerDescriptor,
B extends HttpRegistryRestServer<DESC, B>>
-
isDestroyable
public boolean isDestroyable()- Specified by:
isDestroyable
in interfaceorg.refcodes.component.Destroyable.DestroyAutomaton
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceorg.refcodes.component.Destroyable.DestroyAutomaton
-
setInstanceId
- Specified by:
setInstanceId
in interfaceorg.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
-
getInstanceId
- Specified by:
getInstanceId
in interfaceorg.refcodes.mixin.InstanceIdAccessor
-
setHost
- Specified by:
setHost
in interfaceorg.refcodes.web.HostAccessor.HostMutator
-
getHost
- Specified by:
getHost
in interfaceorg.refcodes.web.HostAccessor
-
getVirtualHost
- Specified by:
getVirtualHost
in interfaceorg.refcodes.web.VirtualHostAccessor
-
setVirtualHost
- Specified by:
setVirtualHost
in interfaceorg.refcodes.web.VirtualHostAccessor.VirtualHostMutator
-
getIpAddress
public int[] getIpAddress()- Specified by:
getIpAddress
in interfaceorg.refcodes.net.IpAddressAccessor
-
setIpAddress
public void setIpAddress(int[] aIpAddress) - Specified by:
setIpAddress
in interfaceorg.refcodes.net.IpAddressAccessor.IpAddressMutator
-
getTrustStoreDescriptor
public org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()- Specified by:
getTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor
-
setTrustStoreDescriptor
public void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aTrustStoreDescriptor) - Specified by:
setTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
-
getHttpServerDescriptor
Retrieves theHttpServerDescriptor
from theHttpServerDescriptor
property.- Specified by:
getHttpServerDescriptor
in interfaceHttpServerDescriptorAccessor<DESC extends HttpServerDescriptor>
- Returns:
- The
HttpServerDescriptor
stored by theHttpServerDescriptor
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.
-
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.
-
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.
-
getAlias
- Specified by:
getAlias
in interfaceorg.refcodes.mixin.AliasAccessor
-
setAlias
- Specified by:
setAlias
in interfaceorg.refcodes.mixin.AliasAccessor.AliasMutator
-
getPingPath
Retrieves the ping path from the ping path property.- Specified by:
getPingPath
in interfacePingPathAccessor
- Returns:
- The ping path stored by the ping path property.
-
setPingPath
Sets the ping path for the ping path property.- Specified by:
setPingPath
in interfacePingPathAccessor.PingPathMutator
- Parameters:
aPingPath
- The ping path to be stored by the ping path property.
-
onPingRequest
Sets the pingRestRequestConsumer
listening for "ping" requests.- Specified by:
onPingRequest
in interfacePingRequestObserver
- Parameters:
aRequestConsumer
- The pingRestRequestConsumer
to be registered.
-
getPingRequestObserver
Retrieves the pingRestRequestConsumer
from the pingRestRequestConsumer
property.- Specified by:
getPingRequestObserver
in interfacePingRequestObserverAccessor
- Returns:
- The ping
RestRequestConsumer
stored by the pingRestRequestConsumer
property.
-
toHost
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aHost
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
- Throws:
UnknownHostException
- thrown in case the local machine's host cannot be resolved when the provided host is null.
-
toVirtualHost
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aVirtualHost
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toIpAddress
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aIpAddress
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
- Throws:
IOException
- thrown in case the local machine's IP-Address cannot be resolved when the provided IP-Address is null.
-
toAlias
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aAlias
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toScheme
protected org.refcodes.data.Scheme toScheme(org.refcodes.data.Scheme aScheme) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aScheme
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toPort
protected int toPort(int aPort) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aPort
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toInstanceId
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aInstanceId
- The value to be used when not null.aHost
- The value to be used when instance TID is null.- Returns:
- The value when not null, else the value of this instance's property.
-
toPingPath
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aPingPath
- The value to be used when not null.aDefaultPingPath
- The value to be used when the ping path is null.- Returns:
- The value when not null, else the value of this instance's property.
-
toTrustStoreDescriptor
protected org.refcodes.security.TrustStoreDescriptor toTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aStoreDescriptor
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toHttpRegistryUrl
protected org.refcodes.web.Url toHttpRegistryUrl(org.refcodes.web.Url aRegistryUrl) Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aRegistryUrl
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toHttpServerDescriptor
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aServerDescriptor
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-
toPingObserver
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.- Parameters:
aPingRequestObserver
- The value to be used when not null.- Returns:
- The value when not null, else the value of this instance's property.
-