Uses of Interface
org.refcodes.rest.HttpRestClient
-
Uses of HttpRestClient in org.refcodes.rest
Modifier and TypeClassDescriptionclass
AbstractHttpRestClientDecorator<B extends HttpRestClient>
Abstract class for easily decorating aHttpRestClient
.Modifier and TypeInterfaceDescriptioninterface
HttpDiscoveryRestClient<B extends HttpDiscoveryRestClient<B>>
TheHttpDiscoveryRestClient
provides additional functionality for registering at and signing off from a service discovery service in order to resolve URLs to or from other services.Modifier and TypeClassDescriptionclass
Abstract class for easily decorating aHttpDiscoveryRestClient
.class
AbstractHttpRestClientDecorator<B extends HttpRestClient>
Abstract class for easily decorating aHttpRestClient
.class
TheHttpRestClientImpl
implements theHttpRestClient
interface.class
The singleton of theHttpRestClientImpl
for easyHttpRestClient
access.Modifier and TypeFieldDescriptionprotected HttpRestClient
AbstractHttpRestClientDecorator._client
Modifier and TypeMethodDescriptionstatic HttpRestClient
HttpRestClientSingleton.getInstance()
Returns the singleton's instance as fabricated by thisHttpRestClientSingleton
.default HttpRestClient
HttpRestClient.withBaseUrl
(String aBaseUrl) default HttpRestClient
HttpRestClient.withBaseUrl
(URL aBaseURL) default HttpRestClient
HttpRestClient.withBaseUrl
(org.refcodes.web.Url aBaseUrl) static HttpRestClient
HttpRestClientSugar.withBaseUrl
(String aBaseUrl) See alsowithBaseUrl(String)
static HttpRestClient
HttpRestClientSugar.withBaseUrl
(URL aBaseUrl) See alsowithBaseUrl(URL)
default HttpRestClient
HttpRestClient.withBasicAuthCredentials
(String aUserName, String aSecret) default HttpRestClient
HttpRestClient.withBasicAuthCredentials
(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) default HttpRestClient
HttpRestClient.withDisableRequestCorrelation()
default HttpRestClient
HttpRestClient.withDisableSessionCorrelation()
default HttpRestClient
HttpRestClient.withEnableRequestCorrelation()
default HttpRestClient
HttpRestClient.withEnableSessionCorrelation()
default HttpRestClient
HttpRestClient.withOAuthToken
(org.refcodes.web.OauthToken aOauthToken) default HttpRestClient
HttpRestClient.withOpen()
Open the component's connection(s).default HttpRestClient
HttpRestClient.withOpen
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Configures the HTTPS client connection with the provided configuration parameters.default HttpRestClient
HttpRestClient.withOpen
(org.refcodes.web.HttpClientContext aCtx) Opens the component with the given connection.default HttpRestClient
HttpRestClient.withOpen
(org.refcodes.web.Url aBaseUrl) Configures the HTTPS client connection with the provided configuration parameters.default HttpRestClient
HttpRestClient.withOpen
(org.refcodes.web.Url aBaseUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Configures the HTTPS client connection with the provided configuration parameters.default HttpRestClient
HttpRestClient.withRequestCorrelation
(boolean hasRequestCorrelation) default HttpRestClient
HttpRestClient.withSessionCorrelation
(boolean hasSessionCorrelation) default HttpRestClient
HttpRestClient.withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) default HttpRestClient
HttpRestClient.withUserAgent
(String aUserAgent) static HttpRestClient
HttpRestClientSugar.withUserAgent
(String aUserAgent) See alsowithUserAgent(String)
ModifierConstructorDescriptionDecorates the givenHttpRestClient
with discovery functionality.Decorates the givenHttpRestClient
.OauthTokenHandler
(String aUrl, HttpRestClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(String aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(String aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(String aUrl, HttpRestClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType) Constructs an instance of theOauthTokenHandler
with the given parameters by using the user's name and password for a "password" grant type authentication to retrieve aOauthToken
.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, org.refcodes.web.HttpBodyMap aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, HttpRestClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.