Module org.refcodes.rest.ext.eureka
Package org.refcodes.rest.ext.eureka
Class EurekaRestClientDecorator
java.lang.Object
org.refcodes.rest.AbstractRestfulHttpClientDecorator<B>
org.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
org.refcodes.rest.ext.eureka.EurekaRestClientDecorator
- All Implemented Interfaces:
org.refcodes.component.Closable
,org.refcodes.component.Configurable<org.refcodes.rest.HttpDiscoveryContext>
,org.refcodes.component.ConnectionComponent<org.refcodes.web.HttpClientContext>
,org.refcodes.component.ConnectionOpenable<org.refcodes.web.HttpClientContext>
,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.Openable.OpenBuilder<org.refcodes.rest.RestfulHttpClient>
,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
,EurekaDiscovery<RestfulEurekaClient>
,RestfulEurekaClient
,org.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
,org.refcodes.rest.HttpDiscoveryUrlAccessor
,org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<RestfulEurekaClient>
,org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
,org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
,org.refcodes.rest.RestDeleteClient
,org.refcodes.rest.RestfulClient
,org.refcodes.rest.RestfulHttpClient
,org.refcodes.rest.RestfulHttpDiscoveryClient<RestfulEurekaClient>
,org.refcodes.rest.RestGetClient
,org.refcodes.rest.RestPostClient
,org.refcodes.rest.RestPutClient
,org.refcodes.rest.RestRequestClient
,org.refcodes.rest.RestRequestHandler
,org.refcodes.security.TrustStoreDescriptorAccessor
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<org.refcodes.rest.RestfulHttpClient>
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
,org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
,org.refcodes.web.BaseUrlAccessor
,org.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
,org.refcodes.web.BaseUrlAccessor.BaseUrlMutator
,org.refcodes.web.BaseUrlAccessor.BaseUrlProperty
,org.refcodes.web.BasicAuthCredentialsAccessor
,org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<org.refcodes.rest.RestfulClient>
,org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator
,org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty
,org.refcodes.web.HttpClientInterceptable
,org.refcodes.web.LoadBalancingStrategyAccessor
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<RestfulEurekaClient>
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
,org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
,org.refcodes.web.MediaTypeFactoryLookup
,org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
,org.refcodes.web.OauthTokenAccessor
,org.refcodes.web.OauthTokenAccessor.OauthTokenBuilder<org.refcodes.rest.RestfulClient>
,org.refcodes.web.OauthTokenAccessor.OauthTokenMutator
,org.refcodes.web.OauthTokenAccessor.OauthTokenProperty
,org.refcodes.web.PostHttpClientInterceptable
,org.refcodes.web.PostHttpInterceptable<org.refcodes.web.PostHttpClientInterceptor>
,org.refcodes.web.PreHttpClientInterceptable
,org.refcodes.web.PreHttpInterceptable<org.refcodes.web.PreHttpClientInterceptor>
,org.refcodes.web.UserAgentAccessor
,org.refcodes.web.UserAgentAccessor.UserAgentBuilder<org.refcodes.rest.RestfulClient>
,org.refcodes.web.UserAgentAccessor.UserAgentMutator
,org.refcodes.web.UserAgentAccessor.UserAgentProperty
- Direct Known Subclasses:
EurekaRestClient
public class EurekaRestClientDecorator
extends org.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
implements RestfulEurekaClient
The
EurekaRestClientDecorator
decorates a RestfulHttpClient
with functionality such registering and unregistering from / to a Eureka
discovery service.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.web.BaseUrlAccessor
org.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<B extends org.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<B>>, org.refcodes.web.BaseUrlAccessor.BaseUrlMutator, org.refcodes.web.BaseUrlAccessor.BaseUrlProperty
Nested classes/interfaces inherited from interface org.refcodes.web.BasicAuthCredentialsAccessor
org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B extends org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B>>, org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator, org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty
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.rest.HttpDiscoveryUrlAccessor
org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B extends org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<B>>, org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator, org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
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.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.web.LoadBalancingStrategyAccessor
org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B extends org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<B>>, org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator, org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
Nested classes/interfaces inherited from interface org.refcodes.web.MediaTypeFactoryLookup
org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
Nested classes/interfaces inherited from interface org.refcodes.web.OauthTokenAccessor
org.refcodes.web.OauthTokenAccessor.OauthTokenBuilder<B extends org.refcodes.web.OauthTokenAccessor.OauthTokenBuilder<B>>, org.refcodes.web.OauthTokenAccessor.OauthTokenMutator, org.refcodes.web.OauthTokenAccessor.OauthTokenProperty
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.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.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.UserAgentAccessor
org.refcodes.web.UserAgentAccessor.UserAgentBuilder<B extends org.refcodes.web.UserAgentAccessor.UserAgentBuilder<B>>, org.refcodes.web.UserAgentAccessor.UserAgentMutator, org.refcodes.web.UserAgentAccessor.UserAgentProperty
-
Field Summary
Fields inherited from class org.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator
_lifeCycleAutomaton
Fields inherited from class org.refcodes.rest.AbstractRestfulHttpClientDecorator
_client
Fields inherited from interface org.refcodes.rest.RestfulHttpClient
DEFAULT_KEYSTORE_TYPE, DEFAULT_SSL_PROTOCOL
-
Constructor Summary
ConstructorDescriptionEurekaRestClientDecorator
(org.refcodes.rest.RestfulHttpClient aClient) Decorates the givenRestfulHttpClient
with discovery functionality.EurekaRestClientDecorator
(org.refcodes.rest.RestfulHttpClient aClient, ExecutorService aExecutorService) Decorates the givenRestfulHttpClient
with discovery functionality. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
org.refcodes.web.BasicAuthCredentials
void
initialize
(org.refcodes.web.Url aDiscoveryUrl, org.refcodes.web.LoadBalancingStrategy aStrategy, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) void
pause()
void
resume()
void
setBasicAuthCredentials
(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) void
start()
void
stop()
org.refcodes.web.Url
toUrl
(org.refcodes.web.Url aUrl) withBaseUrl
(String aBaseUrl) withBaseUrl
(String aProtocol, String aHost) withBaseUrl
(String aProtocol, String aHost, int aPort) withBaseUrl
(String aProtocol, String aHost, int aPort, String aPath) withBaseUrl
(String aProtocol, String aHost, String aPath) withBaseUrl
(URL aBaseURL) withBaseUrl
(org.refcodes.data.Scheme aScheme, String aHost) withBaseUrl
(org.refcodes.data.Scheme aScheme, String aHost, int aPort) withBaseUrl
(org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) withBaseUrl
(org.refcodes.data.Scheme aScheme, String aHost, String aPath) withBaseUrl
(org.refcodes.web.Url aBaseUrl) withBasicAuthCredentials
(String aUserName, String aSecret) withBasicAuthCredentials
(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) withHttpDiscoveryUrl
(org.refcodes.web.Url aUrl) withLoadBalancingStrategy
(org.refcodes.web.LoadBalancingStrategy aStrategy) withOAuthToken
(org.refcodes.web.OauthToken aOauthToken) withOpen()
withOpen
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) withOpen
(org.refcodes.web.HttpClientContext aCtx) withOpen
(org.refcodes.web.Url aBaseUrl) withOpen
(org.refcodes.web.Url aBaseUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) withUserAgent
(String aUserAgent) Methods inherited from class org.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator
getHttpDiscoveryUrl, getLifecycleStatus, getLoadBalancingStrategy, initialize, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, setHttpDiscoveryUrl, setLoadBalancingStrategy, toHttpDiscoveryUrl, toLoadBalancerStrategy, toTrustStoreDescriptor
Methods inherited from class org.refcodes.rest.AbstractRestfulHttpClientDecorator
addMediaTypeFactory, addPostHttpInterceptor, addPreHttpInterceptor, buildRequest, close, closeIn, closeQuietly, closeUnchecked, doRequest, getBaseUrl, getConnectionStatus, getFactoryMediaTypes, getOauthToken, getTrustStoreDescriptor, getUserAgent, hasMediaTypeFactory, hasPostHttpInterceptor, hasPreHttpInterceptor, onResponse, onResponse, open, open, openUnchecked, removePostHttpInterceptor, removePreHttpInterceptor, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setOauthToken, setTrustStoreDescriptor, setUserAgent, toMediaTypeFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.web.BaseUrlAccessor
getBaseUrl
Methods inherited from interface org.refcodes.web.BaseUrlAccessor.BaseUrlMutator
setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl, setBaseUrl
Methods inherited from interface org.refcodes.web.BaseUrlAccessor.BaseUrlProperty
letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl, letBaseUrl
Methods inherited from interface org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator
setBasicAuthCredentials
Methods inherited from interface org.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty
letBasicAuthCredentials, letBasicAuthCredentials
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
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.ConnectionStatusAccessor
getConnectionStatus, isOpened
Methods inherited from interface org.refcodes.component.Destroyable.DestroyAutomaton
isDestroyable, isDestroyed
Methods inherited from interface org.refcodes.web.HttpClientInterceptable
addHttpInterceptor, hasHttpInterceptor, removeHttpInterceptor
Methods inherited from interface org.refcodes.rest.HttpDiscovery
initialize, initialize, initialize, initialize, initialize, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl, toUrl
Methods inherited from interface org.refcodes.rest.HttpDiscoveryUrlAccessor
getHttpDiscoveryUrl
Methods inherited from interface org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlMutator
setHttpDiscoveryUrl
Methods inherited from interface org.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlProperty
letHttpDiscoveryUrl
Methods inherited from interface org.refcodes.component.Initializable
initializeUnchecked
Methods inherited from interface org.refcodes.component.Initializable.InitializeAutomaton
isInitalizable
Methods inherited from interface org.refcodes.component.InitializedAccessor
isInitialized
Methods inherited from interface org.refcodes.component.LifecycleStatusAccessor
getLifecycleStatus
Methods inherited from interface org.refcodes.web.LoadBalancingStrategyAccessor
getLoadBalancingStrategy
Methods inherited from interface org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyMutator
setLoadBalancingStrategy
Methods inherited from interface org.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyProperty
letLoadBalancingStrategy
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.web.OauthTokenAccessor
getOauthToken
Methods inherited from interface org.refcodes.web.OauthTokenAccessor.OauthTokenMutator
setOauthToken
Methods inherited from interface org.refcodes.web.OauthTokenAccessor.OauthTokenProperty
letOauthToken
Methods inherited from interface org.refcodes.component.Openable
openUnchecked
Methods inherited from interface org.refcodes.component.Pausable
pauseUnchecked
Methods inherited from interface org.refcodes.component.Pausable.PauseAutomaton
isPausable, isPaused
Methods inherited from interface org.refcodes.web.PostHttpInterceptable
addPostHttpInterceptor, hasPostHttpInterceptor, removePostHttpInterceptor
Methods inherited from interface org.refcodes.web.PreHttpInterceptable
addPreHttpInterceptor, hasPreHttpInterceptor, removePreHttpInterceptor
Methods inherited from interface org.refcodes.rest.RestDeleteClient
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, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete, onDelete
Methods inherited from interface org.refcodes.rest.RestfulHttpClient
open, open, open, open, open
Methods inherited from interface org.refcodes.rest.RestGetClient
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, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet, onGet
Methods inherited from interface org.refcodes.rest.RestPostClient
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, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost, onPost
Methods inherited from interface org.refcodes.rest.RestPutClient
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, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut, onPut
Methods inherited from interface org.refcodes.rest.RestRequestClient
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, 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, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse, onResponse
Methods inherited from interface org.refcodes.component.Resumable
resumeUnchecked
Methods inherited from interface org.refcodes.component.Resumable.ResumeAutomaton
isResumable
Methods inherited from interface org.refcodes.component.RunningAccessor
isRunning
Methods inherited from interface org.refcodes.component.Startable
startUnchecked
Methods inherited from interface org.refcodes.component.Startable.StartAutomaton
isStartable
Methods inherited from interface org.refcodes.component.Stoppable
stopUnchecked
Methods inherited from interface org.refcodes.component.Stoppable.StopAutomaton
isStoppable, isStopped
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor
getTrustStoreDescriptor
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorMutator
setTrustStoreDescriptor
Methods inherited from interface org.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorProperty
letTrustStoreDescriptor
Methods inherited from interface org.refcodes.web.UserAgentAccessor
getUserAgent
Methods inherited from interface org.refcodes.web.UserAgentAccessor.UserAgentMutator
setUserAgent
Methods inherited from interface org.refcodes.web.UserAgentAccessor.UserAgentProperty
letUserAgent
-
Constructor Details
-
EurekaRestClientDecorator
public EurekaRestClientDecorator(org.refcodes.rest.RestfulHttpClient aClient) Decorates the givenRestfulHttpClient
with discovery functionality.- Parameters:
aClient
- TheRestfulHttpClient
to be decorated.
-
EurekaRestClientDecorator
public EurekaRestClientDecorator(org.refcodes.rest.RestfulHttpClient aClient, ExecutorService aExecutorService) Decorates the givenRestfulHttpClient
with discovery functionality.- Parameters:
aClient
- TheRestfulHttpClient
to be decorated.aExecutorService
- An executor service to be used when creatingThread
s.
-
-
Method Details
-
initialize
public void initialize(org.refcodes.web.Url aDiscoveryUrl, org.refcodes.web.LoadBalancingStrategy aStrategy, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws org.refcodes.component.InitializeException - Specified by:
initialize
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Throws:
org.refcodes.component.InitializeException
-
start
public void start() throws org.refcodes.component.StartException- Specified by:
start
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
start
in interfaceorg.refcodes.component.Startable
- Overrides:
start
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
- Throws:
org.refcodes.component.StartException
-
pause
public void pause() throws org.refcodes.component.PauseException- Specified by:
pause
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
pause
in interfaceorg.refcodes.component.Pausable
- Overrides:
pause
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
- Throws:
org.refcodes.component.PauseException
-
stop
public void stop() throws org.refcodes.component.StopException- Specified by:
stop
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
stop
in interfaceorg.refcodes.component.Stoppable
- Overrides:
stop
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
- Throws:
org.refcodes.component.StopException
-
resume
public void resume() throws org.refcodes.component.ResumeException- Specified by:
resume
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
resume
in interfaceorg.refcodes.component.Resumable
- Overrides:
resume
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
- Throws:
org.refcodes.component.ResumeException
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.refcodes.component.Destroyable
- Specified by:
destroy
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Overrides:
destroy
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
-
toUrl
public org.refcodes.web.Url toUrl(org.refcodes.web.Url aUrl) - Specified by:
toUrl
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
toUrl
in classorg.refcodes.rest.AbstractRestfulHttpDiscoveryClientDecorator<RestfulEurekaClient>
-
getBasicAuthCredentials
public org.refcodes.web.BasicAuthCredentials getBasicAuthCredentials()- Specified by:
getBasicAuthCredentials
in interfaceorg.refcodes.web.BasicAuthCredentialsAccessor
-
setBasicAuthCredentials
public void setBasicAuthCredentials(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) - Specified by:
setBasicAuthCredentials
in interfaceorg.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator
-
withOpen
- Specified by:
withOpen
in interfaceorg.refcodes.component.Openable.OpenBuilder<org.refcodes.rest.RestfulHttpClient>
- Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpClient
- Throws:
IOException
-
withOpen
public EurekaRestClientDecorator withOpen(org.refcodes.web.HttpClientContext aCtx) throws IOException - Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpClient
- Throws:
IOException
-
withOpen
public EurekaRestClientDecorator withOpen(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws IOException - Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpClient
- Throws:
IOException
-
withOpen
- Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpClient
- Throws:
IOException
-
withOpen
public EurekaRestClientDecorator withOpen(org.refcodes.web.Url aBaseUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) throws IOException - Specified by:
withOpen
in interfaceorg.refcodes.rest.RestfulHttpClient
- Throws:
IOException
-
withBaseUrl
- Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Specified by:
withBaseUrl
in interfaceorg.refcodes.rest.RestfulHttpClient
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
- Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Specified by:
withBaseUrl
in interfaceorg.refcodes.rest.RestfulHttpClient
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
-
withBaseUrl
- Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Specified by:
withBaseUrl
in interfaceorg.refcodes.rest.RestfulHttpClient
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
-
withBasicAuthCredentials
public EurekaRestClientDecorator withBasicAuthCredentials(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) - Specified by:
withBasicAuthCredentials
in interfaceorg.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<org.refcodes.rest.RestfulClient>
- Specified by:
withBasicAuthCredentials
in interfaceorg.refcodes.rest.RestfulHttpClient
-
withBasicAuthCredentials
- Specified by:
withBasicAuthCredentials
in interfaceorg.refcodes.web.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<org.refcodes.rest.RestfulClient>
- Specified by:
withBasicAuthCredentials
in interfaceorg.refcodes.rest.RestfulHttpClient
-
withOAuthToken
- Specified by:
withOAuthToken
in interfaceorg.refcodes.web.OauthTokenAccessor.OauthTokenBuilder<org.refcodes.rest.RestfulClient>
- Specified by:
withOAuthToken
in interfaceorg.refcodes.rest.RestfulHttpClient
-
withTrustStoreDescriptor
public EurekaRestClientDecorator withTrustStoreDescriptor(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) - Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.rest.RestfulHttpClient
- Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.rest.RestfulHttpDiscoveryClient<RestfulEurekaClient>
- Specified by:
withTrustStoreDescriptor
in interfaceorg.refcodes.security.TrustStoreDescriptorAccessor.TrustStoreDescriptorBuilder<org.refcodes.rest.RestfulHttpClient>
-
withUserAgent
- Specified by:
withUserAgent
in interfaceorg.refcodes.rest.RestfulHttpClient
- Specified by:
withUserAgent
in interfaceorg.refcodes.web.UserAgentAccessor.UserAgentBuilder<org.refcodes.rest.RestfulClient>
- Overrides:
withUserAgent
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(String aProtocol, String aHost) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(String aProtocol, String aHost, String aPath) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, String aPath) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(String aProtocol, String aHost, int aPort) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, int aPort) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(String aProtocol, String aHost, int aPort, String aPath) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withBaseUrl
public EurekaRestClientDecorator withBaseUrl(org.refcodes.data.Scheme aScheme, String aHost, int aPort, String aPath) throws MalformedURLException - Specified by:
withBaseUrl
in interfaceorg.refcodes.web.BaseUrlAccessor.BaseUrlBuilder<org.refcodes.rest.RestfulHttpClient>
- Overrides:
withBaseUrl
in classorg.refcodes.rest.AbstractRestfulHttpClientDecorator<RestfulEurekaClient>
- Throws:
MalformedURLException
-
withOpenUnchecked
- Specified by:
withOpenUnchecked
in interfaceorg.refcodes.component.Openable.OpenBuilder<org.refcodes.rest.RestfulHttpClient>
-
withLoadBalancingStrategy
public EurekaRestClientDecorator withLoadBalancingStrategy(org.refcodes.web.LoadBalancingStrategy aStrategy) - Specified by:
withLoadBalancingStrategy
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
withLoadBalancingStrategy
in interfaceorg.refcodes.web.LoadBalancingStrategyAccessor.LoadBalancingStrategyBuilder<RestfulEurekaClient>
-
withHttpDiscoveryUrl
- Specified by:
withHttpDiscoveryUrl
in interfaceorg.refcodes.rest.HttpDiscovery<RestfulEurekaClient>
- Specified by:
withHttpDiscoveryUrl
in interfaceorg.refcodes.rest.HttpDiscoveryUrlAccessor.HttpDiscoveryUrlBuilder<RestfulEurekaClient>
-