org.sapia.ubik.rmi.server.invocation
Class ClientPreInvokeEvent
java.lang.Object
org.sapia.ubik.rmi.server.invocation.ClientPreInvokeEvent
- All Implemented Interfaces:
- Event
public class ClientPreInvokeEvent
- extends java.lang.Object
- implements Event
This instance is generated on the client-size prior to a
remote method call.
Intercepting this event allows to implement substitution behavior,
such as:
...
InvokeCommand inv = event.getInvocable();
Credentials cre = SecurityController.getCredentials();
SecureInvocationCommand sec = new SecureInvokationCommand(inv);
evt.setCommand(sec);
...
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the
license page at the Sapia OSS web site
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientPreInvokeEvent
public ClientPreInvokeEvent(InvokeCommand cmd)
getCommand
public InvokeCommand getCommand()
- Return the command that will be sent to the server.
- Returns:
- am
InvokeCommand instance.
setCommand
public void setCommand(InvokeCommand cmd)
- Sets the command that will be sent to the server.
- Parameters:
an - InvokeCommand.
Copyright © 2010 Sapia OSS. All Rights Reserved.