public class CustomCommand extends ExecutableCommandWrapper implements ExecutableCommand
If an Integrity command is supported in this package (e.g. CreateItemCommand
),
developers are advised using it. Otherwise, for commands that are not in the scope of this library
or if you have special needs, this generic command enables executing any valid Integrity command.
Constructor and Description |
---|
CustomCommand(com.mks.api.Command command,
Model model)
Instantiates this class to execute an Integrity command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
handleResponse(com.mks.api.response.Response response)
A hook to process the response received from Integrity when the command has been executed.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public CustomCommand(com.mks.api.Command command, Model model)
command
- the Integrity command to execute.model
- the Model instance which was loaded with 'Application' readerprotected void handleResponse(com.mks.api.response.Response response) throws com.mks.api.response.APIException, CoreException
response
- the Integrity responsecom.mks.api.response.APIException
- if an Integrity API called on the response objects throws such exception.CoreException
- if anything prevents from correctly processing the response.