public interface HttpDiscoveryRestClient extends HttpRestClient, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryRestClient>, org.refcodes.component.Configurable<HttpDiscoveryContext>, org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<HttpDiscoveryRestClient>
HttpDiscoveryRestClient
provides additional functionality for
registering at and signing off from a service discovery service in order to
resolve URLs to or from other services.org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B extends org.refcodes.net.UserAgentAccessor.UserAgentBuilder<B>>, org.refcodes.net.UserAgentAccessor.UserAgentMutator, org.refcodes.net.UserAgentAccessor.UserAgentProperty
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B extends org.refcodes.net.BaseUrlAccessor.BaseUrlBuilder<B>>, org.refcodes.net.BaseUrlAccessor.BaseUrlMutator, org.refcodes.net.BaseUrlAccessor.BaseUrlProperty
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.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B extends org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B>>, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator, org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
org.refcodes.component.Configurable.ConfigureAutomaton<CTX>, org.refcodes.component.Configurable.ConfigureBuilder<CTX,B extends org.refcodes.component.Configurable.ConfigureBuilder<CTX,B>>
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
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.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
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.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
org.refcodes.component.Destroyable.DestroyAutomaton
org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusMutator, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusProperty
HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B extends HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B>>, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator, HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
DEFAULT_KEYSTORE_TYPE, DEFAULT_SSL_PROTOCOL
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Stops resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
default void |
initialize()
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
default void |
initialize(HttpDiscoveryContext aDiscoveryContext)
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
default void |
initialize(org.refcodes.net.Url aDiscoveryUrl)
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
default void |
initialize(org.refcodes.net.Url aDiscoveryUrl,
org.refcodes.net.LoadBalancingStrategy aStrategy)
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
void |
initialize(org.refcodes.net.Url aDiscoveryUrl,
org.refcodes.net.LoadBalancingStrategy aStrategy,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
default void |
initialize(org.refcodes.net.Url aDiscoveryUrl,
org.refcodes.security.TrustStoreDescriptor aStoreDescriptor)
Initially fetches the list of available services and their accordingly
associated
Url from the discovery service. |
void |
pause()
Pauses the resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
resume()
Resumes the resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
start()
Starts resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
void |
stop()
Stops resolving of the host part of an
Url from the list of
available services and their accordingly associated Url as of the
discovery service. |
default HttpDiscoveryRestClient |
withHttpDiscoveryUrl(org.refcodes.net.Url aUrl)
Sets the URL for the URL property locating the service discovery
discovery.
|
default HttpDiscoveryRestClient |
withLoadBalancingStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy) |
open, open, open, open, open, withDisableRequestCorrelation, withDisableSessionCorrelation, withEnableRequestCorrelation, withEnableSessionCorrelation, withRequestCorrelation, withSessionCorrelation, withTrustStoreDescriptor, withUserAgent
getConnectionStatus, isConnectionOpened
buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, buildGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet, doGet
buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, buildPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost, doPost
buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, buildDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete, doDelete
buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, buildPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut, doPut
buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, buildRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest, doRequest
addMediaTypeFactory
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
disableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelation
disableSessionCorrelation, enableSessionCorrelation, hasSessionCorrelation, setSessionCorrelation
close, closeIn, closeQuietly, closeUnchecked
setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl
withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl, withBaseUrl
getTrustStoreDescriptor
setTrustStoreDescriptor
getLoadBalancingStrategy
setLoadBalancingStrategy
isInitalizable
isPausable, isPaused
isStoppable, isStopped
isDestroyable, isDestroyed
getHttpDiscoveryUrl
setHttpDiscoveryUrl
default void initialize() throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state when invoking
initialize(Url, LoadBalancingStrategy, TrustStoreDescriptor)
.
initialize
in interface org.refcodes.component.Initializable
org.refcodes.component.InitializeException
default void initialize(org.refcodes.net.Url aDiscoveryUrl) throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state and the provided parameters when
invoking
initialize(Url, LoadBalancingStrategy, TrustStoreDescriptor)
.aDiscoveryUrl
- The Url
pointing to the discovery service.org.refcodes.component.InitializeException
- Thrown in case initializing fails.default void initialize(HttpDiscoveryContext aDiscoveryContext) throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the provided context when invoking
initialize(Url, LoadBalancingStrategy, TrustStoreDescriptor)
.
initialize
in interface org.refcodes.component.Configurable<HttpDiscoveryContext>
aDiscoveryContext
- The HttpDiscoveryContext
describing the
information for connecting to the discovery service.org.refcodes.component.InitializeException
default void initialize(org.refcodes.net.Url aDiscoveryUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state and the provided parameters when
invoking
initialize(Url, LoadBalancingStrategy, TrustStoreDescriptor)
.
aDiscoveryUrl
- The Url
pointing to the discovery serviceaStoreDescriptor
- The descriptor describing the truststore to be
used by this client.org.refcodes.component.InitializeException
default void initialize(org.refcodes.net.Url aDiscoveryUrl, org.refcodes.net.LoadBalancingStrategy aStrategy) throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state and the provided parameters.
aDiscoveryUrl
- The Url
pointing to the discovery serviceaStrategy
- The load balancing strategy to use when resolving
targeted Url
of issued requests.org.refcodes.component.InitializeException
void initialize(org.refcodes.net.Url aDiscoveryUrl, org.refcodes.net.LoadBalancingStrategy aStrategy, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException
Url
from the discovery service. Sets up the client
according to the current client's state and the provided parameters.
aDiscoveryUrl
- The Url
pointing to the discovery serviceaStrategy
- The load balancing strategy to use when resolving
targeted Url
of issued requests.aStoreDescriptor
- The descriptor describing the truststore to be
used by this client.org.refcodes.component.InitializeException
void start() throws org.refcodes.component.StartException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Takes care to update the list of available services
and their accordingly associated Url
from the discovery service.
This may be achieved by starting a scheduler. If necessary, the
connection is opened via HttpRestClient.open()
or the like.
start
in interface org.refcodes.component.Startable
org.refcodes.component.StartException
void pause() throws org.refcodes.component.PauseException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service.
pause
in interface org.refcodes.component.Pausable
org.refcodes.component.PauseException
void resume() throws org.refcodes.component.ResumeException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service.
resume
in interface org.refcodes.component.Resumable
org.refcodes.component.ResumeException
void stop() throws org.refcodes.component.StopException
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Does not update the list of available services and
their accordingly associated Url
from the discovery service. This
may be achieved by canceling a scheduler.
stop
in interface org.refcodes.component.Stoppable
org.refcodes.component.StopException
void destroy()
Url
from the list of
available services and their accordingly associated Url
as of the
discovery service. Does not update the list of available services and
their accordingly associated Url
from the discovery service. This
may be achieved by canceling a scheduler. Finally the connection is
closed via Closable.close()
.
destroy
in interface org.refcodes.component.Destroyable
default HttpDiscoveryRestClient withLoadBalancingStrategy(org.refcodes.net.LoadBalancingStrategy aStrategy)
withLoadBalancingStrategy
in interface org.refcodes.net.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<HttpDiscoveryRestClient>
default HttpDiscoveryRestClient withHttpDiscoveryUrl(org.refcodes.net.Url aUrl)
withHttpDiscoveryUrl
in interface HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<HttpDiscoveryRestClient>
aUrl
- The service discovery discovery URL to be stored by the
URL property.Copyright © 2018. All rights reserved.