org.codegist.crest.security.handler
Class RefreshAuthentificationRetryHandler

java.lang.Object
  extended by 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.


Field Summary
static int DEFAULT_MAX_ATTEMPTS
           
 
Constructor Summary
RefreshAuthentificationRetryHandler(Map<String,Object> customProperties)
           
 
Method Summary
 boolean retry(ResponseContext response, Exception exception, int retryNumber)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_ATTEMPTS

public static final int DEFAULT_MAX_ATTEMPTS
See Also:
Constant Field Values
Constructor Detail

RefreshAuthentificationRetryHandler

public RefreshAuthentificationRetryHandler(Map<String,Object> customProperties)
Method Detail

retry

public boolean retry(ResponseContext response,
                     Exception exception,
                     int retryNumber)
Specified by:
retry in interface RetryHandler


Copyright © 2011. All Rights Reserved.