org.codegist.crest.security.handler
Class RefreshAuthentificationRetryHandler
java.lang.Object
org.codegist.crest.security.handler.RefreshAuthentificationRetryHandler
- All Implemented Interfaces:
- RetryHandler
public class RefreshAuthentificationRetryHandler
- extends Object
- implements RetryHandler
Authentification retry handler that refresh the authentification if the retry cause is a 401 problem.
Requires an AuthentificationManager
instance to be present in the custom properties.
DEFAULT_MAX_ATTEMPTS
public static final int DEFAULT_MAX_ATTEMPTS
- See Also:
- Constant Field Values
RefreshAuthentificationRetryHandler
public RefreshAuthentificationRetryHandler(Map<String,Object> customProperties)
retry
public boolean retry(ResponseContext response,
Exception exception,
int retryNumber)
- Specified by:
retry
in interface RetryHandler
Copyright © 2011. All Rights Reserved.