Class ImportApiRootBuilder
java.lang.Object
com.commercetools.importapi.defaultconfig.ImportApiRootBuilder
-
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 ImportApiRootBuilder
of()
static ImportApiRootBuilder
of
(HandlerStack stack) static ImportApiRootBuilder
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 ImportApiRootBuilder withHttpExceptionFactory(Function<ResponseSerializer, HttpExceptionFactory> factory) -
withHttpExceptionFactory
-
defaultClient
-
defaultClient
public ImportApiRootBuilder defaultClient(ClientCredentials credentials, ServiceRegionConfig serviceRegion) -
defaultClient
public ImportApiRootBuilder defaultClient(ClientCredentials credentials, String tokenEndpoint, String apiEndpoint) -
defaultClient
public ImportApiRootBuilder defaultClient(String apiEndpoint, ClientCredentials credentials, String tokenEndpoint) -
defaultClient
-
defaultClient
-
withClientCredentialsFlow
public ImportApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, String tokenEndpoint) -
withClientCredentialsFlow
public ImportApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) -
withClientCredentialsFlow
public ImportApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, URI tokenEndpoint) -
withClientCredentialsFlow
public ImportApiRootBuilder withClientCredentialsFlow(ClientCredentials credentials, URI tokenEndpoint, VrapHttpClient httpClient) -
withStaticTokenFlow
-
withAnonymousSessionFlow
public ImportApiRootBuilder withAnonymousSessionFlow(ClientCredentials credentials, String tokenEndpoint) -
withAnonymousSessionFlow
public ImportApiRootBuilder withAnonymousSessionFlow(ClientCredentials credentials, String tokenEndpoint, VrapHttpClient httpClient) -
withGlobalCustomerPasswordFlow
public ImportApiRootBuilder withGlobalCustomerPasswordFlow(ClientCredentials credentials, String email, String password, String tokenEndpoint) -
withGlobalCustomerPasswordFlow
public ImportApiRootBuilder withGlobalCustomerPasswordFlow(ClientCredentials credentials, String email, String password, String tokenEndpoint, VrapHttpClient httpClient) -
addAcceptGZipMiddleware
-
withErrorMiddleware
-
withErrorMiddleware
-
withPolicies
-
withRetryMiddleware
@Deprecated public ImportApiRootBuilder withRetryMiddleware(Supplier<RetryRequestMiddleware> retryMiddleware) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public ImportApiRootBuilder withRetryMiddleware(int maxRetries, List<Integer> statusCodes) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public ImportApiRootBuilder withRetryMiddleware(int maxRetries, List<Integer> statusCodes, List<Class<? extends Throwable>> failures) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public ImportApiRootBuilder withRetryMiddleware(int maxRetries, long delay, long maxDelay, List<Integer> statusCodes, List<Class<? extends Throwable>> failures, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
instead -
withRetryMiddleware
@Deprecated public ImportApiRootBuilder withRetryMiddleware(int maxRetries, long delay, long maxDelay, FailsafeRetryPolicyBuilderOptions fn) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public ImportApiRootBuilder withQueueMiddleware(Supplier<QueueRequestMiddleware> queueMiddleware) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public ImportApiRootBuilder withQueueMiddleware(dev.failsafe.spi.Scheduler scheduler, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public ImportApiRootBuilder withQueueMiddleware(ScheduledExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withQueueMiddleware
@Deprecated public ImportApiRootBuilder withQueueMiddleware(ExecutorService executorService, int maxRequests, Duration maxWaitTime) Deprecated.usewithPolicies(Function)
instead -
withOAuthMiddleware
-
withOAuthMiddleware
-
withTokenSupplier
-
withTokenSupplier
-
withInternalLoggerMiddleware
public ImportApiRootBuilder withInternalLoggerMiddleware(InternalLoggerMiddleware internalLoggerMiddleware) -
withInternalLoggerFactory
-
withInternalLoggerFactory
public ImportApiRootBuilder withInternalLoggerFactory(InternalLoggerFactory internalLoggerFactory, org.slf4j.event.Level responseLogEvent, org.slf4j.event.Level deprecationLogEvent) -
withInternalLoggerFactory
public ImportApiRootBuilder 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 ImportApiRootBuilder 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 ImportApiRootBuilder 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