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