public class ClientPreInvokeEvent extends Object implements Event
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); ...
| Constructor and Description |
|---|
ClientPreInvokeEvent(InvokeCommand cmd) |
| Modifier and Type | Method and Description |
|---|---|
InvokeCommand |
getCommand()
Returns the command that will be sent to the server.
|
void |
setCommand(InvokeCommand cmd)
Sets the command that will be sent to the server.
|
public ClientPreInvokeEvent(InvokeCommand cmd)
public InvokeCommand getCommand()
InvokeCommand instance.public void setCommand(InvokeCommand cmd)
cmd - an InvokeCommand.Copyright © 2012 Sapia OSS. All Rights Reserved.