public abstract class ServerAction extends SingleThreadAction<ServerActionInput,GenericActionCommand,GenericActionResponse>
| Constructor and Description |
|---|
ServerAction() |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
call(ServerContext devicesContext,
ActionDefinition def,
ServerActionInput serverActionInput) |
protected abstract ActionResult |
execute(ServerActionInput parameters) |
protected boolean |
executeDefaultSubstitutors(ServerActionInput parameters) |
protected void |
executeInteractively(java.lang.String operationName,
ServerContext ctx,
java.util.List<Context> contexts,
java.lang.String action,
DataTable executionParameters) |
protected ServerActionContext |
getActionContext() |
protected ActionDefinition |
getActionDefinition() |
CallerController |
getCallerController() |
ServerContext |
getDefiningContext() |
DataTable |
getParameter(ServerActionInput input,
java.lang.String name) |
ServerActionCommandProcessor |
getProcessor() |
ActionResult |
invoke(ServerActionInput parameters)
Override this method to provide action functionality.
|
protected void |
processError(java.lang.Throwable ex) |
ActionResult |
redirect(ServerContext ctx,
ActionDefinition def,
ServerActionInput input) |
ActionResult |
redirect(ServerContext ctx,
java.lang.String action,
ServerActionInput input) |
void |
redirectToGroupedAction(ServerContext ctx,
java.util.List<Context> contexts,
java.lang.String action,
CallerController caller,
DataTable executionParameters) |
GenericActionResponse |
send(GenericActionCommand actionCommand)
Action Implementations should override this method to provide command sending functionality to client.
|
destroy, init, redirect, redirectById, service, toStringpublic GenericActionResponse send(GenericActionCommand actionCommand) throws DisconnectionException
SequentialActionsend in class SingleThreadAction<ServerActionInput,GenericActionCommand,GenericActionResponse>DisconnectionExceptionpublic ServerActionCommandProcessor getProcessor()
protected ServerActionContext getActionContext()
getActionContext in class SingleThreadAction<ServerActionInput,GenericActionCommand,GenericActionResponse>protected ActionDefinition getActionDefinition()
public ServerContext getDefiningContext()
public DataTable getParameter(ServerActionInput input, java.lang.String name)
public CallerController getCallerController()
public ActionResult invoke(ServerActionInput parameters) throws ContextException
SequentialActioninvoke in class SequentialAction<ServerActionInput,GenericActionCommand,GenericActionResponse>ContextExceptionprotected abstract ActionResult execute(ServerActionInput parameters) throws ContextException
ContextExceptionprotected boolean executeDefaultSubstitutors(ServerActionInput parameters) throws ContextException
ContextExceptionpublic ActionResult redirect(ServerContext ctx, java.lang.String action, ServerActionInput input) throws ContextException
ContextExceptionpublic ActionResult redirect(ServerContext ctx, ActionDefinition def, ServerActionInput input) throws ContextException
ContextExceptionpublic ActionResult call(ServerContext devicesContext, ActionDefinition def, ServerActionInput serverActionInput)
public void redirectToGroupedAction(ServerContext ctx, java.util.List<Context> contexts, java.lang.String action, CallerController caller, DataTable executionParameters) throws ContextException, DisconnectionException
protected void executeInteractively(java.lang.String operationName,
ServerContext ctx,
java.util.List<Context> contexts,
java.lang.String action,
DataTable executionParameters)
throws ContextException,
DisconnectionException
protected void processError(java.lang.Throwable ex)
processError in class SingleThreadAction<ServerActionInput,GenericActionCommand,GenericActionResponse>