org.clazzes.remoting.beans
Class OpenClientSessionInterceptor

java.lang.Object
  extended by org.clazzes.remoting.beans.OpenClientSessionInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

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

This interceptor bind a remote session and a client to the current thread upon the end of a method invocation. In order to use this class you need to use the optional spring dependency or use aopalliance-1.0

Author:
wglas

Field Summary
static java.lang.String DEFAULT_SESSION_CONTEXT_SUBSYTEM
           
 
Constructor Summary
OpenClientSessionInterceptor()
           
 
Method Summary
 ClientManager getClientManager()
           
 SessionAuthenticator getSessionAuthenticator()
           
 java.lang.String getSessionContextSubSystem()
           
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
protected  ClientHolder makeClientHolder(Client client)
           
 void setClientManager(ClientManager clientManager)
           
 void setSessionAuthenticator(SessionAuthenticator sessionAuthenticator)
           
 void setSessionContextSubSystem(java.lang.String sessionContextSubSystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SESSION_CONTEXT_SUBSYTEM

public static final java.lang.String DEFAULT_SESSION_CONTEXT_SUBSYTEM
See Also:
Constant Field Values
Constructor Detail

OpenClientSessionInterceptor

public OpenClientSessionInterceptor()
Method Detail

makeClientHolder

protected ClientHolder makeClientHolder(Client client)

invoke

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

getClientManager

public ClientManager getClientManager()
Returns:
the clientManager

setClientManager

public void setClientManager(ClientManager clientManager)
Parameters:
clientManager - the clientManager to set

getSessionContextSubSystem

public java.lang.String getSessionContextSubSystem()
Returns:
the sessionContextSubSystem

setSessionContextSubSystem

public void setSessionContextSubSystem(java.lang.String sessionContextSubSystem)
Parameters:
sessionContextSubSystem - the sessionContextSubSystem to set

getSessionAuthenticator

public SessionAuthenticator getSessionAuthenticator()
Returns:
The authenticator used to generate authentication metadat for the server.

setSessionAuthenticator

public void setSessionAuthenticator(SessionAuthenticator sessionAuthenticator)
Parameters:
sessionAuthenticator - The session authenticator to set.


Copyright © 2010. All Rights Reserved.