org.apache.shiro.spring.remoting
Class SecureRemoteInvocationFactory
java.lang.Object
org.springframework.remoting.support.DefaultRemoteInvocationFactory
org.apache.shiro.spring.remoting.SecureRemoteInvocationFactory
- All Implemented Interfaces:
- org.springframework.remoting.support.RemoteInvocationFactory
public class SecureRemoteInvocationFactory
- extends org.springframework.remoting.support.DefaultRemoteInvocationFactory
A RemoteInvocationFactory
that passes the session ID to the server via a
RemoteInvocation
attribute
.
This factory is the client-side part of
the Shiro Spring remoting invocation. A SecureRemoteInvocationExecutor
should
be used to export the server-side remote services to ensure that the appropriate
Subject and Session are bound to the remote thread during execution.
- Since:
- 0.1
Method Summary |
org.springframework.remoting.support.RemoteInvocation |
createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
Creates a RemoteInvocation with the current session ID as an
attribute . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_ID_KEY
public static final String SESSION_ID_KEY
HOST_KEY
public static final String HOST_KEY
SecureRemoteInvocationFactory
public SecureRemoteInvocationFactory()
SecureRemoteInvocationFactory
public SecureRemoteInvocationFactory(String sessionId)
createRemoteInvocation
public org.springframework.remoting.support.RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
- Creates a
RemoteInvocation
with the current session ID as an
attribute
.
- Specified by:
createRemoteInvocation
in interface org.springframework.remoting.support.RemoteInvocationFactory
- Overrides:
createRemoteInvocation
in class org.springframework.remoting.support.DefaultRemoteInvocationFactory
- Parameters:
mi
- the method invocation that the remote invocation should be based on.
- Returns:
- a remote invocation object containing the current session ID as an attribute.
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.