org.alfresco.repo.remote
Class ReauthenticatingAdvice

java.lang.Object
  extended by org.alfresco.repo.remote.ReauthenticatingAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class ReauthenticatingAdvice
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

This is an interceptor that continuosly tries to reauthenticate when a method call results in an AuthenticationException.


Constructor Summary
ReauthenticatingAdvice()
          Default constructor.
 
Method Summary
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
           
 void setAuthenticationService(AuthenticationService service)
          Setter.
 void setClientTicketHolder(ClientTicketHolder ticketHolder)
          Setter.
 void setPassword(java.lang.String password)
          Setter.
 void setRetryInterval(long retryInterval)
          Setter.
 void setUser(java.lang.String user)
          Setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReauthenticatingAdvice

public ReauthenticatingAdvice()
Default constructor.

Method Detail

setAuthenticationService

public void setAuthenticationService(AuthenticationService service)
Setter.


setClientTicketHolder

public void setClientTicketHolder(ClientTicketHolder ticketHolder)
Setter.


setUser

public void setUser(java.lang.String user)
Setter.


setPassword

public void setPassword(java.lang.String password)
Setter.


setRetryInterval

public void setRetryInterval(long retryInterval)
Setter.


invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.