public class ClientUtil extends Object
Copyright (c) 2008
Boomi Software
Constructor and Description |
---|
ClientUtil() |
Modifier and Type | Method and Description |
---|---|
static org.restlet.data.Response |
handle(org.restlet.Client client,
RequestFactory requestFactory,
com.boomi.util.retry.RetryStrategy strategy)
Utility to implement a retryable handle based on a retry strategy.
|
public static org.restlet.data.Response handle(org.restlet.Client client, RequestFactory requestFactory, com.boomi.util.retry.RetryStrategy strategy) throws GeneralSecurityException
RetryStrategy.shouldRetry(int, java.lang.Object)
method is the restlet response Status
object.client
- The restlet Client
that will handle the request.requestFactory
- Factory which generates the Request
to handle.strategy
- The RetryStrategy
to implement for the handle.GeneralSecurityException
- if there's a security issue creating the request.