Uses of Interface
org.refcodes.rest.RestfulHttpClient
-
Uses of RestfulHttpClient in org.refcodes.rest
Modifier and TypeInterfaceDescriptioninterface
RestfulHttpDiscoveryClient<B extends RestfulHttpDiscoveryClient<B>>
TheRestfulHttpDiscoveryClient
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 aRestfulHttpClient
.class
Abstract class for easily decorating aRestfulHttpDiscoveryClient
.class
TheHttpRestClient
implements theRestfulHttpClient
interface.class
The singleton of theHttpRestClient
for easyRestfulHttpClient
access.Modifier and TypeFieldDescriptionprotected RestfulHttpClient
AbstractRestfulHttpClientDecorator._client
Modifier and TypeMethodDescriptionstatic RestfulHttpClient
HttpRestClientSingleton.getInstance()
Returns the singleton's instance as fabricated by thisHttpRestClientSingleton
.static RestfulHttpClient
HttpRestClientSugar.withBaseUrl
(String aBaseUrl) See alsowithBaseUrl(String)
.static RestfulHttpClient
HttpRestClientSugar.withBaseUrl
(URL aBaseUrl) See alsowithBaseUrl(URL)
.default RestfulHttpClient
RestfulHttpClient.withBaseUrl
(String aBaseUrl) default RestfulHttpClient
RestfulHttpClient.withBaseUrl
(URL aBaseURL) default RestfulHttpClient
RestfulHttpClient.withBaseUrl
(org.refcodes.web.Url aBaseUrl) default RestfulHttpClient
RestfulHttpClient.withBasicAuthCredentials
(String aUserName, String aSecret) default RestfulHttpClient
RestfulHttpClient.withBasicAuthCredentials
(org.refcodes.web.BasicAuthCredentials aBasicAuthCredentials) default RestfulHttpClient
RestfulHttpClient.withOAuthToken
(org.refcodes.web.OauthToken aOauthToken) default RestfulHttpClient
RestfulHttpClient.withOpen()
Open the component's connection(s).default RestfulHttpClient
RestfulHttpClient.withOpen
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Configures the HTTPS client connection with the provided configuration parameters.default RestfulHttpClient
RestfulHttpClient.withOpen
(org.refcodes.web.HttpClientContext aCtx) Opens the component with the given connection.default RestfulHttpClient
RestfulHttpClient.withOpen
(org.refcodes.web.Url aBaseUrl) Configures the HTTPS client connection with the provided configuration parameters.default RestfulHttpClient
RestfulHttpClient.withOpen
(org.refcodes.web.Url aBaseUrl, org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) Configures the HTTPS client connection with the provided configuration parameters.default RestfulHttpClient
RestfulHttpClient.withTrustStoreDescriptor
(org.refcodes.security.TrustStoreDescriptor aStoreDescriptor) static RestfulHttpClient
HttpRestClientSugar.withUserAgent
(String aUserAgent) See alsowithUserAgent(String)
.default RestfulHttpClient
RestfulHttpClient.withUserAgent
(String aUserAgent) ModifierConstructorDescriptionDecorates the givenRestfulHttpClient
.Decorates the givenRestfulHttpClient
with discovery functionality.OauthTokenHandler
(String aUrl, RestfulHttpClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, RestfulHttpClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, RestfulHttpClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(String aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, String aAccessToken, String aRefreshToken, String aTokenType, Integer aExpiresIn, String aScope, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, String aGrantType, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, String aClientId, String aClientSecret, String aUserName, String aUserPassword, org.refcodes.web.GrantType aGrantType, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) 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, RestfulHttpClient aHttpRestClient, org.refcodes.web.HttpBodyMap aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.HttpBodyMap aOauthToken, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.HttpBodyMap aOauthToken, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken, int aTokenRefreshRetries, long aTokenRefreshRetryWaitTimeMillis, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.OauthTokenHandler
(org.refcodes.web.Url aUrl, RestfulHttpClient aHttpRestClient, org.refcodes.web.OauthToken aOauthToken, org.refcodes.controlflow.RetryCounter aTokenRefreshRetryCounter, long aServerRecoveryWaitTimeMillis) Constructs an instance of theOauthTokenHandler
with the given parameters.