DESC
- The type of the server discovery descriptor (the object
describing your service and locating the service registry).B
- In order to implement the builder pattern with a coherent type
hierarchy.org.refcodes.mixin.AliasAccessor
, org.refcodes.mixin.AliasAccessor.AliasBuilder<DESC>
, org.refcodes.mixin.AliasAccessor.AliasMutator
, org.refcodes.mixin.AliasAccessor.AliasProperty
, org.refcodes.web.BaseLocatorAccessor
, org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<DESC>
, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
, org.refcodes.web.BasicAuthObservable<DESC>
, 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.web.HostAccessor
, org.refcodes.web.HostAccessor.HostBuilder<DESC>
, org.refcodes.web.HostAccessor.HostMutator
, org.refcodes.web.HostAccessor.HostProperty
, HttpExceptionHandlerAccessor
, HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<DESC>
, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
, HttpExceptionHandlingAccessor
, HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<DESC>
, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
, HttpRegistry<DESC,B>
, HttpRegistryUrlAccessor
, HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<DESC>
, HttpRegistryUrlAccessor.HttpRegistryUrlMutator
, HttpRegistryUrlAccessor.HttpRegistryUrlProperty
, HttpRestServer
, org.refcodes.web.HttpsConnectionRequestObservable<DESC>
, HttpServerDescriptorAccessor<DESC>
, HttpServerDescriptorAccessor.HttpServerDescriptorBuilder<DESC,B>
, HttpServerDescriptorAccessor.HttpServerDescriptorMutator<DESC>
, HttpServerDescriptorAccessor.HttpServerDescriptorProperty<DESC>
, HttpServerDescriptorFactory<DESC>
, org.refcodes.component.Initializable
, org.refcodes.component.Initializable.InitializeAutomaton
, org.refcodes.component.InitializedAccessor
, org.refcodes.mixin.InstanceIdAccessor
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<DESC>
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator
, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
, org.refcodes.web.IpAddressAccessor
, org.refcodes.web.IpAddressAccessor.IpAddressBuilder<DESC>
, org.refcodes.web.IpAddressAccessor.IpAddressMutator
, org.refcodes.web.IpAddressAccessor.IpAddressProperty
, org.refcodes.security.KeyStoreDescriptorAccessor
, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<DESC>
, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
, org.refcodes.component.LifeCycleComponent
, org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton
, org.refcodes.component.LifeCycleStatusAccessor
, org.refcodes.component.LinkComponent
, org.refcodes.io.MaxConnectionsAccessor
, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<DESC>
, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
, org.refcodes.web.MediaTypeFactoryLookup
, org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
, org.refcodes.observer.Observable<DESC>
, org.refcodes.observer.Observers<DESC,B>
, org.refcodes.component.Openable
, org.refcodes.component.OpenedAccessor
, org.refcodes.component.Pausable
, org.refcodes.component.Pausable.PauseAutomaton
, PingPathAccessor
, PingPathAccessor.PingPathBuilder<DESC>
, PingPathAccessor.PingPathMutator
, PingPathAccessor.PingPathProperty
, PingRequestObserver
, PingRequestObserverAccessor
, PingRequestObserverAccessor.PingRequestObserverBuilder<B>
, org.refcodes.mixin.PortAccessor
, org.refcodes.mixin.PortAccessor.PortBuilder<DESC>
, org.refcodes.mixin.PortAccessor.PortMutator
, org.refcodes.mixin.PortAccessor.PortProperty
, org.refcodes.web.RealmAccessor
, org.refcodes.web.RealmAccessor.RealmBuilder<DESC>
, org.refcodes.web.RealmAccessor.RealmMutator
, org.refcodes.web.RealmAccessor.RealmProperty
, org.refcodes.runtime.RequestCorrelation<DESC>
, RestServer
, org.refcodes.component.Resumable
, org.refcodes.component.Resumable.ResumeAutomaton
, org.refcodes.component.RunningAccessor
, org.refcodes.web.SchemeAccessor
, org.refcodes.web.SchemeAccessor.SchemeBuilder<DESC>
, org.refcodes.web.SchemeAccessor.SchemeMutator
, org.refcodes.web.SchemeAccessor.SchemeProperty
, org.refcodes.runtime.SessionCorrelation<DESC>
, org.refcodes.component.Startable
, org.refcodes.component.Startable.StartAutomaton
, org.refcodes.component.Stoppable
, org.refcodes.component.Stoppable.StopAutomaton
, org.refcodes.security.TrustStoreDescriptorAccessor
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<DESC>
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
, org.refcodes.web.VirtualHostAccessor
, org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<DESC>
, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator
, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
AbstractHttpRegistryRestServerDecorator
public interface HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>> extends HttpRegistry<DESC,B>, HttpRestServer, PingRequestObserver, PingRequestObserverAccessor, PingRequestObserverAccessor.PingRequestObserverBuilder<B>
HttpRegistryRestServer
provides additional functionality for
registering at and signing off from a service discovery service in order to
resolve URLs to or from other services. This type is intended to be used by
different separate hierarchy branches by providing of the generic type
<B>, ensuring a coherent type hierarchy for each branch.org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty
org.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.ConnectionStatusProperty
org.refcodes.component.Destroyable.DestroyAutomaton
org.refcodes.web.HostAccessor.HostBuilder<B extends org.refcodes.web.HostAccessor.HostBuilder<?>>, org.refcodes.web.HostAccessor.HostMutator, org.refcodes.web.HostAccessor.HostProperty
HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B extends HttpRegistryUrlAccessor.HttpRegistryUrlBuilder<B>>, HttpRegistryUrlAccessor.HttpRegistryUrlMutator, HttpRegistryUrlAccessor.HttpRegistryUrlProperty
HttpServerDescriptorAccessor.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.UncheckedInitializable
org.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedProperty
org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B extends org.refcodes.mixin.InstanceIdAccessor.InstanceIdBuilder<B>>, org.refcodes.mixin.InstanceIdAccessor.InstanceIdMutator, org.refcodes.mixin.InstanceIdAccessor.InstanceIdProperty
org.refcodes.web.IpAddressAccessor.IpAddressBuilder<B extends org.refcodes.web.IpAddressAccessor.IpAddressBuilder<B>>, org.refcodes.web.IpAddressAccessor.IpAddressMutator, org.refcodes.web.IpAddressAccessor.IpAddressProperty
org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusMutator, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusProperty
org.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.MaxConnectionsProperty
org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
PingPathAccessor.PingPathBuilder<B extends PingPathAccessor.PingPathBuilder<?>>, PingPathAccessor.PingPathMutator, PingPathAccessor.PingPathProperty
PingRequestObserverAccessor.PingRequestObserverBuilder<B extends PingRequestObserverAccessor.PingRequestObserverBuilder<B>>, PingRequestObserverAccessor.PingRequestObserverMutator, PingRequestObserverAccessor.PingRequestObserverProperty
org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
org.refcodes.web.RealmAccessor.RealmBuilder<B extends org.refcodes.web.RealmAccessor.RealmBuilder<B>>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
org.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningProperty
org.refcodes.web.SchemeAccessor.SchemeBuilder<B extends org.refcodes.web.SchemeAccessor.SchemeBuilder<B>>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
org.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
org.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B extends org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<B>>, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator, org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<B extends org.refcodes.web.VirtualHostAccessor.VirtualHostBuilder<?>>, org.refcodes.web.VirtualHostAccessor.VirtualHostMutator, org.refcodes.web.VirtualHostAccessor.VirtualHostProperty
Modifier and Type | Method | Description |
---|---|---|
void |
destroy() |
This server is taken (removed) from the registry server.
|
void |
initialize(String aAlias,
String aInstanceId,
org.refcodes.data.Scheme aScheme,
String aHost,
String aVirtualHost,
int[] aIpAddress,
int aPort,
String aPingPath,
RestRequestConsumer aPingRequestObserver,
org.refcodes.web.Url aRegistryUrl) |
Initializes the
HttpRegistryRestServer by registering it at the
service registry with a status such as "starting" or "initializing" or
"not-ready-yet". |
default void |
initialize(String aAlias,
org.refcodes.data.Scheme aScheme,
String aHost,
String aVirtualHost,
int[] aIpAddress,
int aPort,
String aPingPath,
RestRequestConsumer aPingRequestObserver,
org.refcodes.web.Url aRegistryUrl) |
Initializes the
HttpRegistryRestServer by registering it at the
service registry with a status such as "starting" or "initializing" or
"not-ready-yet". |
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 |
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.
|
default B |
withPingRequestObserver(RestRequestConsumer aRequestConsumer) |
Sets the ping
RestRequestConsumer for the ping
RestRequestConsumer property. |
default B |
withPort(int aPort) |
|
default B |
withProtocol(String aProtocol) |
|
default B |
withScheme(org.refcodes.data.Scheme aScheme) |
setBaseLocator
letBaseLocator
close, closeIn, closeQuietly, closeUnchecked
withOpenUnchecked
getConnectionStatus, isOpened
isDestroyable, isDestroyed
getHttpExceptionHandler
withOnHttpException
onHttpException, setHttpExceptionHandler
letHttpExceptionHandler
getHttpExceptionHandling
setHttpExceptionHandling
letHttpExceptionHandling
initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, withAlias, withCidrNotation, withHost, withHttpRegistryUrl, withHttpServerDescriptor, withInstanceId, withIpAddress, withPingPath, withTrustStoreDescriptor, withVirtualHost
getHttpRegistryUrl
setHttpRegistryUrl
letHttpRegistryUrl
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
onConnectionRequest
getHttpServerDescriptor
setHttpServerDescriptor
letHttpServerDescriptor
toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor, toHttpServerDescriptor
isInitalizable
setInstanceId
letInstanceId
fromCidrNotation, setIpAddress
getKeyStoreDescriptor
setKeyStoreDescriptor
letKeyStoreDescriptor
setMaxConnections
letMaxConnections
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
addMediaTypeFactory
hasObserverSubscription, subscribeObserver, unsubscribeObserver
disableObservers, enableObservers, isObserversActive, observers, setObserversActive
isPausable, isPaused
getPingPath
setPingPath
letPingPath
onPingRequest
getPingRequestObserver
disableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelation
onDelete, onDelete, onGet, onGet, onPost, onPost, onPut, onPut, onRequest, onRequest, onRequest, onRequest, onRequest, withDisableObservers, withEnableObservers, withObserversActive
setProtocol, setScheme
letProtocol, letScheme
disableSessionCorrelation, enableSessionCorrelation, hasSessionCorrelation, setSessionCorrelation
isStoppable, isStopped
getTrustStoreDescriptor
setTrustStoreDescriptor
letTrustStoreDescriptor
default B withPort(int aPort)
withPort
in interface HttpRestServer
withPort
in interface org.refcodes.mixin.PortAccessor.PortBuilder<DESC extends HttpServerDescriptor>
default B withScheme(org.refcodes.data.Scheme aScheme)
withScheme
in interface HttpRestServer
withScheme
in interface org.refcodes.web.SchemeAccessor.SchemeBuilder<DESC extends HttpServerDescriptor>
default B withProtocol(String aProtocol)
withProtocol
in interface HttpRestServer
withProtocol
in interface org.refcodes.web.SchemeAccessor.SchemeBuilder<DESC extends HttpServerDescriptor>
default B withPingRequestObserver(RestRequestConsumer aRequestConsumer)
RestRequestConsumer
for the ping
RestRequestConsumer
property.withPingRequestObserver
in interface PingRequestObserverAccessor.PingRequestObserverBuilder<DESC extends HttpServerDescriptor>
aRequestConsumer
- The ping RestRequestConsumer
to be
stored by the ping RestRequestConsumer
property.default void initialize(String aAlias, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, RestRequestConsumer aPingRequestObserver, org.refcodes.web.Url aRegistryUrl) throws org.refcodes.component.InitializeException
HttpRegistryRestServer
by registering it at the
service registry with a status such as "starting" or "initializing" or
"not-ready-yet". aAlias
- The name ("alias") which identifies the server in the
registry.aScheme
- The Scheme
to which this server is being attached
(HTTP or HTTPS).aHost
- The host name to be used to address this server. If omitted,
then the system's host name should be used.aVirtualHost
- The virtual host name to be used for resolving.aIpAddress
- The IP-Address identifying the host.aPort
- The port of your service being registered.aPingPath
- The path to use as health-check end-point by this
server.aPingRequestObserver
- The RestRequestConsumer
hooking into
a ping request.aRegistryUrl
- The registry server where to register.org.refcodes.component.InitializeException
- thrown in case initializing a component
caused problems. Usually a method similar to "initialize()"
throws such an exception.void initialize(String aAlias, String aInstanceId, org.refcodes.data.Scheme aScheme, String aHost, String aVirtualHost, int[] aIpAddress, int aPort, String aPingPath, RestRequestConsumer aPingRequestObserver, org.refcodes.web.Url aRegistryUrl) throws org.refcodes.component.InitializeException
HttpRegistryRestServer
by registering it at the
service registry with a status such as "starting" or "initializing" or
"not-ready-yet". aAlias
- The name ("alias") which identifies the server in the
registry.aInstanceId
- The TID for the instance when being registered at the
service registry. If omitted, then the host name is used.aScheme
- The Scheme
to which this server is being attached
(HTTP or HTTPS).aHost
- The host name to be used to address this server. If omitted,
then the system's host name should be used.aVirtualHost
- The virtual host name to be used for resolving.aIpAddress
- The IP-Address identifying the host.aPort
- The port of your service being registered.aPingPath
- The path to use as health-check end-point by this
server.aPingRequestObserver
- The RestRequestConsumer
hooking into
a ping request.aRegistryUrl
- The registry server where to register.org.refcodes.component.InitializeException
- thrown in case initializing a component
caused problems. Usually a method similar to "initialize()"
throws such an exception.void start() throws org.refcodes.component.StartException
RestEndpoint
instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,
RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,
RestServer.onPut(String, RestRequestConsumer)
or
RestServer.onDelete(String, RestRequestConsumer)
) 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 org.refcodes.component.Startable
org.refcodes.component.StartException
void pause() throws org.refcodes.component.PauseException
RestEndpoint
instances (observers) (e.g. via
RestEndpointBuilder
being registered e.g. via
RestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,
RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,
RestServer.onPut(String, RestRequestConsumer)
or
RestServer.onDelete(String, RestRequestConsumer)
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 org.refcodes.component.Pausable
org.refcodes.component.PauseException
void resume() throws org.refcodes.component.ResumeException
RestEndpoint
instances (observers) (e.g.
via RestEndpointBuilder
being registered e.g. via
RestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,
RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,
RestServer.onPut(String, RestRequestConsumer)
or
RestServer.onDelete(String, RestRequestConsumer)
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 org.refcodes.component.Resumable
org.refcodes.component.ResumeException
void stop() throws org.refcodes.component.StopException
RestEndpoint
instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,
RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,
RestServer.onPut(String, RestRequestConsumer)
or
RestServer.onDelete(String, RestRequestConsumer)
) 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 org.refcodes.component.Stoppable
org.refcodes.component.StopException
void destroy()
RestEndpoint
instances (observers) (e.g. via
RestServer.onRequest(org.refcodes.web.HttpMethod, String, RestRequestConsumer)
,
RestServer.onGet(String, RestRequestConsumer)
RestServer.onPut(String, RestRequestConsumer)
,
RestServer.onPut(String, RestRequestConsumer)
or
RestServer.onDelete(String, RestRequestConsumer)
) 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.Destroyable
destroy
in interface HttpRegistry<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>
Copyright © 2021. All rights reserved.