public class SecureRemoteInvocationFactory extends DefaultRemoteInvocationFactory
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.Modifier and Type | Field and Description |
---|---|
static String |
HOST_KEY |
static String |
SESSION_ID_KEY |
Constructor and Description |
---|
SecureRemoteInvocationFactory() |
SecureRemoteInvocationFactory(String sessionId) |
Modifier and Type | Method and Description |
---|---|
RemoteInvocation |
createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
Creates a
RemoteInvocation with the current session ID as an
attribute . |
public static final String SESSION_ID_KEY
public SecureRemoteInvocationFactory()
public SecureRemoteInvocationFactory(String sessionId)
public RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation mi)
RemoteInvocation
with the current session ID as an
attribute
.createRemoteInvocation
in interface RemoteInvocationFactory
createRemoteInvocation
in class DefaultRemoteInvocationFactory
mi
- the method invocation that the remote invocation should be based on.Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.