org.refcodes.component.Closable, org.refcodes.component.Closable.CloseBuilder<DESC>, org.refcodes.component.Configurable<DESC>, org.refcodes.component.ConnectionComponent<DESC>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<DESC,B>, org.refcodes.component.ConnectionOpenable<DESC>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<DESC,B>, 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.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<DESC>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.AliasAccessor.AliasBuilder<DESC>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty, org.refcodes.mixin.InstanceIdAccessor, org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<DESC>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<DESC>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.net.BaseLocatorAccessor, org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<DESC>, org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.net.BaseLocatorAccessor.BaseLocatorProperty, org.refcodes.net.BasicAuthObservable<DESC>, org.refcodes.net.HostAccessor, org.refcodes.net.HostAccessor.HostBuilder<DESC>, org.refcodes.net.HostAccessor.HostMutator, org.refcodes.net.HostAccessor.HostProperty, org.refcodes.net.HttpsConnectionRequestObservable<DESC>, org.refcodes.net.IpAddressAccessor, org.refcodes.net.IpAddressAccessor.IpAddressBuilder<DESC>, org.refcodes.net.IpAddressAccessor.IpAddressMutator, org.refcodes.net.IpAddressAccessor.IpAddressProperty, org.refcodes.net.MediaTypeFactoryLookup, org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.net.RealmAccessor, org.refcodes.net.RealmAccessor.RealmBuilder<DESC>, org.refcodes.net.RealmAccessor.RealmMutator, org.refcodes.net.RealmAccessor.RealmProperty, org.refcodes.net.SchemeAccessor, org.refcodes.net.SchemeAccessor.SchemeBuilder<DESC>, org.refcodes.net.SchemeAccessor.SchemeMutator, org.refcodes.net.SchemeAccessor.SchemeProperty, org.refcodes.net.VirtualHostAccessor, org.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<DESC>, org.refcodes.net.VirtualHostAccessor.VirtualHostMutator, org.refcodes.net.VirtualHostAccessor.VirtualHostProperty, org.refcodes.observer.Observable<DESC>, org.refcodes.observer.Observers<DESC,B>, HttpExceptionHandlerAccessor, HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<DESC>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty, HttpExceptionHandlingAccessor, HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<DESC>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty, HttpRegistry<DESC,B>, HttpRegistryRestServer<DESC,B>, HttpRegistryUrlAccessor, HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<DESC>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlProperty, HttpRestServer, HttpServerDescriptorAccessor<DESC>, HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>, HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>, HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC>, HttpServerDescriptorFactory<DESC>, PingPathAccessor, PingPathAccessor.PingPathBuilder<DESC>, PingPathAccessor.PingPathMutator, PingPathAccessor.PingPathProperty, PingRequestObserver, PingRequestObserverAccessor, PingRequestObserverAccessor.PingRequestObserverBuilder<DESC>, RestServer, org.refcodes.runtime.RequestCorrelation<DESC>, org.refcodes.runtime.SessionCorrelation<DESC>, org.refcodes.security.KeyStoreDescriptorAccessor, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<DESC>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, org.refcodes.security.TrustStoreDescriptorAccessor, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorPropertypublic abstract class AbstractHttpRegistryRestServerDecorator<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>> extends AbstractHttpRestServerDecorator<B> implements HttpRegistryRestServer<DESC,B>
HttpRegistryRestServer.org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasPropertyorg.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.net.BaseLocatorAccessor.BaseLocatorPropertyorg.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>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>>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>>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>>org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusPropertyorg.refcodes.component.Destroyable.DestroyAutomatonorg.refcodes.net.HostAccessor.HostBuilder<B extends org.refcodes.net.HostAccessor.HostBuilder<?>>, org.refcodes.net.HostAccessor.HostMutator, org.refcodes.net.HostAccessor.HostPropertyHttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerPropertyHttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingPropertyHttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlPropertyHttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC extends HttpServerDescriptor,B extends HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>>, HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends HttpServerDescriptor>, HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC extends HttpServerDescriptor>org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializableorg.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedPropertyorg.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdPropertyorg.refcodes.net.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.net.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.net.IpAddressAccessor.IpAddressMutator, org.refcodes.net.IpAddressAccessor.IpAddressPropertyorg.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorPropertyorg.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponentorg.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusMutator, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusPropertyorg.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsPropertyorg.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookuporg.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausablePingPathAccessor.PingPathBuilder<B extends PingPathAccessor.PingPathBuilder<?>>, PingPathAccessor.PingPathMutator, PingPathAccessor.PingPathPropertyPingRequestObserverAccessor.PingRequestObserverBuilder<B extends PingRequestObserverAccessor.PingRequestObserverBuilder<B>>, PingRequestObserverAccessor.PingRequestObserverMutator, PingRequestObserverAccessor.PingRequestObserverPropertyorg.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortPropertyorg.refcodes.net.RealmAccessor.RealmBuilder<B extends org.refcodes.net.RealmAccessor.RealmBuilder<B>>, org.refcodes.net.RealmAccessor.RealmMutator, org.refcodes.net.RealmAccessor.RealmPropertyorg.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumableorg.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningPropertyorg.refcodes.net.SchemeAccessor.SchemeBuilder<B extends org.refcodes.net.SchemeAccessor.SchemeBuilder<B>>, org.refcodes.net.SchemeAccessor.SchemeMutator, org.refcodes.net.SchemeAccessor.SchemePropertyorg.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartableorg.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppableorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorPropertyorg.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.net.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.net.VirtualHostAccessor.VirtualHostMutator, org.refcodes.net.VirtualHostAccessor.VirtualHostProperty| Modifier and Type | Field | Description |
|---|---|---|
protected org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl |
_lifeCycleAutomaton |
|
protected RestRequestObserver |
_pingRequestObserver |
_server| Constructor | Description |
|---|---|
AbstractHttpRegistryRestServerDecorator(HttpRestServer aServer) |
Decorates the given
HttpRestServer with discovery functionality. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
This server is taken (removed) from the registry server.
|
String |
getAlias() |
|
String |
getHost() |
|
org.refcodes.net.Url |
getHttpRegistryUrl() |
Retrieves the URL from the URL property locating the service registry
registry.
|
DESC |
getHttpServerDescriptor() |
Retrieves the
HttpServerDescriptor from the
HttpServerDescriptor property. |
String |
getInstanceId() |
|
int[] |
getIpAddress() |
|
org.refcodes.component.LifeCycleStatus |
getLifeCycleStatus() |
|
String |
getPingPath() |
Retrieves the ping path from the ping path property.
|
RestRequestObserver |
getPingRequestObserver() |
Retrieves the ping
RestRequestObserver from the ping
RestRequestObserver property. |
org.refcodes.security.TrustStoreDescriptor |
getTrustStoreDescriptor() |
|
String |
getVirtualHost() |
|
void |
initialize() |
Initializes the
HttpRegistry by registering it at the service
registry with a status such as "starting" or "initializing" or
"not-ready-yet". |
boolean |
isDestroyable() |
|
boolean |
isDestroyed() |
|
boolean |
isInitalizable() |
|
boolean |
isInitialized() |
|
boolean |
isPausable() |
|
boolean |
isPaused() |
|
boolean |
isResumable() |
|
boolean |
isRunning() |
|
boolean |
isStartable() |
|
boolean |
isStoppable() |
|
boolean |
isStopped() |
|
void |
onPingRequest(RestRequestObserver aRequestObserver) |
Sets the ping
RestRequestObserver 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 |
setAlias(String aAlias) |
|
void |
setHost(String aHost) |
|
void |
setHttpRegistryUrl(org.refcodes.net.Url aRegistryUrl) |
Sets the URL for the URL property locating the service registry
registry.
|
void |
setHttpServerDescriptor(DESC aServerDescriptor) |
Sets the
HttpServerDescriptor for the
HttpServerDescriptor 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 aStoreDescriptor) |
|
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 |
toAlias(String aAlias) |
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 |
toHost(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 org.refcodes.net.Url |
toHttpRegistryUrl(org.refcodes.net.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 RestRequestObserver |
toPingObserver(RestRequestObserver 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.
|
addMediaTypeFactory, close, closeIn, closeQuietly, closeUnchecked, disableRequestCorrelation, disableSessionCorrelation, enableRequestCorrelation, enableSessionCorrelation, getBaseLocator, getFactoryMediaTypes, getKeyStoreDescriptor, getMaxConnections, getPort, getRealm, getScheme, hasMediaTypeFactory, hasObserverSubscription, hasRequestCorrelation, hasSessionCorrelation, observers, onBasicAuthRequest, onConnectionRequest, onDelete, onGet, onPost, onPut, 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, withSessionCorrelationsetBaseLocatorclose, closeIn, closeQuietly, closeUncheckedwithOpenUncheckedgetConnectionStatus, isConnectionOpenedgetHttpExceptionHandlerwithOnHttpExceptiononHttpException, setHttpExceptionHandlergetHttpExceptionHandlingsetHttpExceptionHandlinginitialize, initialize, initialize, initialize, initialize, initialize, initialize, withAlias, withCidrNotation, withHost, withHttpRegistryUrl, withHttpServerDescriptor, withInstanceId, withIpAddress, withPingPath, withTrustStoreDescriptor, withVirtualHostinitialize, initialize, withPingRequestObserver, withPort, withProtocol, withSchemeopen, 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, withSessionCorrelationonConnectionRequesttoHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptorfromCidrNotationgetKeyStoreDescriptorsetKeyStoreDescriptorsetMaxConnectionsgetFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactoryaddMediaTypeFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasObserverSubscription, subscribeObserver, unsubscribeObserverdisableObservers, enableObservers, isObserversActive, observers, setObserversActivedisableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelationonDelete, onGet, onPost, onPut, onRequest, onRequest, onRequest, withDisableObservers, withEnableObservers, withObserversActivesetProtocol, setSchemeprotected org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl _lifeCycleAutomaton
protected RestRequestObserver _pingRequestObserver
public AbstractHttpRegistryRestServerDecorator(HttpRestServer aServer)
HttpRestServer with discovery functionality.aServer - The HttpRestServer to be decorated.public boolean isRunning()
isRunning in interface org.refcodes.component.RunningAccessorpublic boolean isInitialized()
isInitialized in interface org.refcodes.component.InitializedAccessorpublic org.refcodes.component.LifeCycleStatus getLifeCycleStatus()
getLifeCycleStatus in interface org.refcodes.component.LifeCycleStatusAccessorpublic void pause()
throws org.refcodes.component.PauseException
RestEndpoint instances (observers) (e.g. via
RestEndpointBuilder being registered e.g. via
RestServer.onRequest(org.refcodes.net.HttpMethod, String, RestRequestObserver),
RestServer.onGet(String, RestRequestObserver)
RestServer.onPut(String, RestRequestObserver),
RestServer.onPut(String, RestRequestObserver) or
RestServer.onDelete(String, RestRequestObserver) is closed by calling its
Closable.close()) are disabled by calling
Observers.disableObservers().
Some "deactivated" status is communicated to the registry server.
pause in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>pause in interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>pause in interface org.refcodes.component.Pausableorg.refcodes.component.PauseExceptionpublic void stop()
throws org.refcodes.component.StopException
RestEndpoint instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.net.HttpMethod, String, RestRequestObserver),
RestServer.onGet(String, RestRequestObserver)
RestServer.onPut(String, RestRequestObserver),
RestServer.onPut(String, RestRequestObserver) or
RestServer.onDelete(String, RestRequestObserver)) are disabled by calling
Observers.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.
stop in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>stop in interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>stop in interface org.refcodes.component.Stoppableorg.refcodes.component.StopExceptionpublic void start()
throws org.refcodes.component.StartException
RestEndpoint instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.net.HttpMethod, String, RestRequestObserver),
RestServer.onGet(String, RestRequestObserver)
RestServer.onPut(String, RestRequestObserver),
RestServer.onPut(String, RestRequestObserver) or
RestServer.onDelete(String, RestRequestObserver)) are enabled by calling
Observers.enableObservers(). If necessary, the connection is opened via
HttpRestServer.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.
start in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>start in interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>start in interface org.refcodes.component.Startableorg.refcodes.component.StartExceptionpublic void resume()
throws org.refcodes.component.ResumeException
RestEndpoint instances (observers) (e.g.
via RestEndpointBuilder being registered e.g. via
RestServer.onRequest(org.refcodes.net.HttpMethod, String, RestRequestObserver),
RestServer.onGet(String, RestRequestObserver)
RestServer.onPut(String, RestRequestObserver),
RestServer.onPut(String, RestRequestObserver) or
RestServer.onDelete(String, RestRequestObserver) is closed by calling its
Closable.close()) are enabled (again) by calling
Observers.enableObservers().
Some "up-and-running (again)" status is communicated to the registry
server.
resume in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>resume in interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>resume in interface org.refcodes.component.Resumableorg.refcodes.component.ResumeExceptionpublic void initialize()
throws org.refcodes.component.InitializeException
HttpRegistry by registering it at the service
registry with a status such as "starting" or "initializing" or
"not-ready-yet".
initialize in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>initialize in interface org.refcodes.component.Initializableorg.refcodes.component.InitializeExceptionpublic boolean isStoppable()
isStoppable in interface org.refcodes.component.Stoppable.StopAutomatonpublic boolean isPausable()
isPausable in interface org.refcodes.component.Pausable.PauseAutomatonpublic boolean isStartable()
isStartable in interface org.refcodes.component.Startable.StartAutomatonpublic boolean isResumable()
isResumable in interface org.refcodes.component.Resumable.ResumeAutomatonpublic boolean isStopped()
isStopped in interface org.refcodes.component.Stoppable.StopAutomatonpublic boolean isPaused()
isPaused in interface org.refcodes.component.Pausable.PauseAutomatonpublic boolean isInitalizable()
isInitalizable in interface org.refcodes.component.Initializable.InitializeAutomatonpublic void destroy()
RestEndpoint instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.net.HttpMethod, String, RestRequestObserver),
RestServer.onGet(String, RestRequestObserver)
RestServer.onPut(String, RestRequestObserver),
RestServer.onPut(String, RestRequestObserver) or
RestServer.onDelete(String, RestRequestObserver)) are disabled by calling
Observers.disableObservers(). Also stops a "ping" or "heartbeat" daemon.
Finally the connection is closed via Closable.close().
This server is taken (removed) from the registry server. Also stops a
"ping" or "heartbeat" daemon. Finally the connection is closed.
destroy in interface org.refcodes.component.Destroyabledestroy in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>destroy in interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>public boolean isDestroyable()
isDestroyable in interface org.refcodes.component.Destroyable.DestroyAutomatonpublic boolean isDestroyed()
isDestroyed in interface org.refcodes.component.Destroyable.DestroyAutomatonpublic void setInstanceId(String aInstanceId)
setInstanceId in interface org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutatorpublic String getInstanceId()
getInstanceId in interface org.refcodes.mixin.InstanceIdAccessorpublic void setHost(String aHost)
setHost in interface org.refcodes.net.HostAccessor.HostMutatorpublic String getHost()
getHost in interface org.refcodes.net.HostAccessorpublic String getVirtualHost()
getVirtualHost in interface org.refcodes.net.VirtualHostAccessorpublic void setVirtualHost(String aVirtualHost)
setVirtualHost in interface org.refcodes.net.VirtualHostAccessor.VirtualHostMutatorpublic int[] getIpAddress()
getIpAddress in interface org.refcodes.net.IpAddressAccessorpublic void setIpAddress(int[] aIpAddress)
setIpAddress in interface org.refcodes.net.IpAddressAccessor.IpAddressMutatorpublic org.refcodes.security.TrustStoreDescriptor getTrustStoreDescriptor()
getTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessorpublic void setTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
setTrustStoreDescriptor in interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutatorpublic DESC getHttpServerDescriptor()
HttpServerDescriptor from the
HttpServerDescriptor property.getHttpServerDescriptor in interface HttpServerDescriptorAccessor<DESC extends HttpServerDescriptor>HttpServerDescriptor stored by the
HttpServerDescriptor property.public void setHttpServerDescriptor(DESC aServerDescriptor)
HttpServerDescriptor for the
HttpServerDescriptor property.setHttpServerDescriptor in interface HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC extends HttpServerDescriptor>aServerDescriptor - The HttpServerDescriptor to be
stored by the HttpServerDescriptor property.public org.refcodes.net.Url getHttpRegistryUrl()
getHttpRegistryUrl in interface HttpRegistryUrlAccessorpublic void setHttpRegistryUrl(org.refcodes.net.Url aRegistryUrl)
setHttpRegistryUrl in interface HttpRegistryUrlAccessor.HttpRegistryUrlMutatoraRegistryUrl - The service registry registry URL to be stored by the
URL property.public String getAlias()
getAlias in interface org.refcodes.mixin.AliasAccessorpublic void setAlias(String aAlias)
setAlias in interface org.refcodes.mixin.AliasAccessor.AliasMutatorpublic String getPingPath()
getPingPath in interface PingPathAccessorpublic void setPingPath(String aPingPath)
setPingPath in interface PingPathAccessor.PingPathMutatoraPingPath - The ping path to be stored by the ping path
property.public void onPingRequest(RestRequestObserver aRequestObserver)
RestRequestObserver listening for "ping" requests.onPingRequest in interface PingRequestObserveraRequestObserver - The ping RestRequestObserver to be
registered.public RestRequestObserver getPingRequestObserver()
RestRequestObserver from the ping
RestRequestObserver property.getPingRequestObserver in interface PingRequestObserverAccessorRestRequestObserver stored by the ping
RestRequestObserver property.protected String toHost(String aHost) throws UnknownHostException
aHost - The value to be used when not null.UnknownHostException - thrown in case the local machine's host
cannot be resolved when the provided host is null.protected String toVirtualHost(String aVirtualHost)
aVirtualHost - The value to be used when not null.protected int[] toIpAddress(int[] aIpAddress)
throws IOException
aIpAddress - The value to be used when not null.IOException - thrown in case the local machine's IP-Address cannot
be resolved when the provided IP-Address is null.protected String toAlias(String aAlias)
aAlias - The value to be used when not null.protected org.refcodes.data.Scheme toScheme(org.refcodes.data.Scheme aScheme)
aScheme - The value to be used when not null.protected int toPort(int aPort)
aPort - The value to be used when not null.protected String toInstanceId(String aInstanceId, String aHost)
aInstanceId - The value to be used when not null.aHost - The value to be used when instance ID is null.protected String toPingPath(String aPingPath, String aDefaultPingPath)
aPingPath - The value to be used when not null.aDefaultPingPath - The value to be used when the ping path is null.protected org.refcodes.security.TrustStoreDescriptor toTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
aStoreDescriptor - The value to be used when not null.protected org.refcodes.net.Url toHttpRegistryUrl(org.refcodes.net.Url aRegistryUrl)
aRegistryUrl - The value to be used when not null.protected DESC toHttpServerDescriptor(DESC aServerDescriptor)
aServerDescriptor - The value to be used when not null.protected RestRequestObserver toPingObserver(RestRequestObserver aPingRequestObserver)
aPingRequestObserver - The value to be used when not null.Copyright © 2018. All rights reserved.