Class HistoryApiRootBuilder
java.lang.Object
com.commercetools.history.defaultconfig.HistoryApiRootBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddCorrelationIdProvider
(CorrelationIdProvider correlationIdProvider) addMiddleware
(Middleware middleware, Middleware... middlewares) addMiddlewares
(List<Middleware> middlewares) build()
buildForProject
(String projectKey) Deprecated.buildProjectRoot
(String projectKey) Deprecated.usebuild(String)
insteaddefaultClient
(ClientCredentials credentials) defaultClient
(ClientCredentials credentials, ServiceRegionConfig serviceRegion) defaultClient
(ClientCredentials credentials, String tokenEndpoint, String apiEndpoint) defaultClient
(String apiEndpoint) defaultClient
(String apiEndpoint, ClientCredentials credentials, String tokenEndpoint) defaultClient
(URI apiEndpoint) static HistoryApiRootBuilder
of()
static HistoryApiRootBuilder
of
(HandlerStack stack) static HistoryApiRootBuilder
of
(VrapHttpClient httpClient) with
(UnaryOperator<ClientBuilder> builderUnaryOperator) withAnonymousSessionFlow
(ClientCredentials credentials, String tokenEndpoint) withAnonymousSessionFlow
(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) withApiBaseUrl
(String apiBaseUrl) withApiBaseUrl
(URI apiBaseUrl) withAuthRetries
(int authRetries) withClientCredentialsFlow
(ClientCredentials credentials, String tokenEndpoint) withClientCredentialsFlow
(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) withClientCredentialsFlow
(ClientCredentials credentials, URI tokenEndpoint) withClientCredentialsFlow
(ClientCredentials credentials, URI tokenEndpoint, VrapHttpClient httpClient) withErrorMiddleware
(ErrorMiddleware errorMiddleware) withGlobalCustomerPasswordFlow
(ClientCredentials credentials, String email, String password, String tokenEndpoint) withGlobalCustomerPasswordFlow
(ClientCredentials credentials, String email, String password, String tokenEndpoint, VrapHttpClient httpClient) withHandlerStack
(HandlerStack stack) withHttpClient
(VrapHttpClient httpClient) withInternalLoggerFactory
(InternalLoggerFactory internalLoggerFactory) withInternalLoggerFactory
(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent) withInternalLoggerFactory
(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent, org.slf4j.event.Level defaultExceptionLogEvent, Map<Class<? extends Throwable>, org.slf4j.event.Level> exceptionLogEvents) withInternalLoggerFactory
(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent, org.slf4j.event.Level defaultExceptionLogEvent, Map<Class<? extends Throwable>, org.slf4j.event.Level> exceptionLogEvents, ResponseLogFormatter responseLogFormatter, ErrorLogFormatter errorLogFormatter) withInternalLoggerMiddleware
(InternalLoggerMiddleware internalLoggerMiddleware) withMiddleware
(Middleware middleware, Middleware... middlewares) withMiddlewares
(List<Middleware> middlewares) withOAuthMiddleware
(OAuthMiddleware oAuthMiddleware) withOAuthMiddleware
(Supplier<OAuthMiddleware> oAuthMiddleware) withQueueMiddleware
(int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
insteadwithQueueMiddleware
(dev.failsafe.spi.Scheduler scheduler, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
insteadwithQueueMiddleware
(QueueRequestMiddleware queueMiddleware) Deprecated.usewithPolicies(Function)
insteadwithQueueMiddleware
(ExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
insteadwithQueueMiddleware
(ScheduledExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
insteadwithQueueMiddleware
(Supplier<QueueRequestMiddleware> queueMiddleware) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(int maxRetries) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(int maxRetries, List<Integer> statusCodes) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(RetryRequestMiddleware retryMiddleware) Deprecated.usewithPolicies(Function)
insteadwithRetryMiddleware
(Supplier<RetryRequestMiddleware> retryMiddleware) Deprecated.usewithPolicies(Function)
insteadwithSerializer
(ResponseSerializer serializer) withSerializer
(Supplier<ResponseSerializer> serializer) withTokenSupplier
(TokenSupplier tokenSupplier) withTokenSupplier
(Supplier<TokenSupplier> tokenSupplier) withUserAgentSupplier
(Supplier<String> userAgentSupplier)
-
Method Details
-
of
-
of
-
of
-
withAuthCircuitBreaker
-
withoutAuthCircuitBreaker
-
withAuthRetries
-
withHandlerStack
-
withHttpClient
-
withSerializer
-
withSerializer
-
withHttpExceptionFactory
-
withHttpExceptionFactory
public HistoryApiRootBuilder withHttpExceptionFactory(Function<ResponseSerializer, HttpExceptionFactory> factory) -
withHttpExceptionFactory
-
defaultClient
-
defaultClient
public HistoryApiRootBuilder defaultClient(ClientCredentials credentials, ServiceRegionConfig serviceRegion) -
defaultClient
public HistoryApiRootBuilder defaultClient(ClientCredentials credentials, String tokenEndpoint, String apiEndpoint) -
defaultClient
public HistoryApiRootBuilder defaultClient(String apiEndpoint, ClientCredentials credentials, String tokenEndpoint) -
defaultClient
-
defaultClient
-
withClientCredentialsFlow
public HistoryApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, String tokenEndpoint) -
withClientCredentialsFlow
public HistoryApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) -
withClientCredentialsFlow
public HistoryApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, URI tokenEndpoint) -
withClientCredentialsFlow
public HistoryApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, URI tokenEndpoint, VrapHttpClient httpClient) -
withStaticTokenFlow
-
withAnonymousSessionFlow
public HistoryApiRootBuilder withAnonymousSessionFlow(ClientCredentials credentials, String tokenEndpoint) -
withAnonymousSessionFlow
public HistoryApiRootBuilder withAnonymousSessionFlow(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) -
withGlobalCustomerPasswordFlow
public HistoryApiRootBuilder withGlobalCustomerPasswordFlow(ClientCredentials credentials, String email, String password, String tokenEndpoint) -
withGlobalCustomerPasswordFlow
public HistoryApiRootBuilder withGlobalCustomerPasswordFlow(ClientCredentials credentials, String email, String password, String tokenEndpoint, VrapHttpClient httpClient) -
addAcceptGZipMiddleware
-
withErrorMiddleware
-
withErrorMiddleware
-
withPolicies
-
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(Supplier<RetryRequestMiddleware> retryMiddleware) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(RetryRequestMiddleware retryMiddleware) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(int maxRetries, List<Integer> statusCodes) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public HistoryApiRootBuilder withRetryMiddleware(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
instead -
withOAuthMiddleware
-
withQueueMiddleware
@Deprecated public HistoryApiRootBuilder withQueueMiddleware(Supplier<QueueRequestMiddleware> queueMiddleware) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public HistoryApiRootBuilder withQueueMiddleware(QueueRequestMiddleware queueMiddleware) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public HistoryApiRootBuilder withQueueMiddleware(dev.failsafe.spi.Scheduler scheduler, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public HistoryApiRootBuilder withQueueMiddleware(ScheduledExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public HistoryApiRootBuilder withQueueMiddleware(ExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withOAuthMiddleware
-
withTokenSupplier
-
withTokenSupplier
-
withInternalLoggerMiddleware
public HistoryApiRootBuilder withInternalLoggerMiddleware(InternalLoggerMiddleware internalLoggerMiddleware) -
withInternalLoggerFactory
-
withInternalLoggerFactory
public HistoryApiRootBuilder withInternalLoggerFactory(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent) -
withInternalLoggerFactory
public HistoryApiRootBuilder withInternalLoggerFactory(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent, org.slf4j.event.Level defaultExceptionLogEvent, Map<Class<? extends Throwable>, org.slf4j.event.Level> exceptionLogEvents) -
withInternalLoggerFactory
public HistoryApiRootBuilder withInternalLoggerFactory(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent, org.slf4j.event.Level defaultExceptionLogEvent, Map<Class<? extends Throwable>, org.slf4j.event.Level> exceptionLogEvents, ResponseLogFormatter responseLogFormatter, ErrorLogFormatter errorLogFormatter) -
withApiBaseUrl
-
withApiBaseUrl
-
withUserAgentSupplier
-
addCorrelationIdProvider
public HistoryApiRootBuilder addCorrelationIdProvider(@Nullable CorrelationIdProvider correlationIdProvider) -
withMiddleware
-
addMiddleware
-
withMiddlewares
-
addMiddlewares
-
with
-
build
-
buildClient
-
clientSupplier
-
buildForProject
Deprecated.usebuild(String)
instead -
buildProjectRoot
Deprecated.usebuild(String)
instead -
build
-
build(String)
instead