public interface Response
Modifier and Type | Interface and Description |
---|---|
static class |
Response.Status |
Modifier and Type | Method and Description |
---|---|
void |
setAborted()
This will end the job execution and report it as a aborted.
|
void |
setAborted(String message)
This will end the job execution and report it as a aborted.
|
void |
setContinue(String nextCommand)
This method will continue the configuration of the job with
a new command to the plugin.
|
void |
setDone(String message)
This will end the job execution and report it as a success.
|
void |
setDone(String message,
Job.ExecutionTime estimatedExecutionTime)
This will end the configuration of a job and set the estimated execution time for it.
|
void |
setError(String message,
List<? extends Throwable> errorList)
This will end the job execution and report it as a failure.
|
void setContinue(String nextCommand) throws PermissionDeniedException
nextCommand
- the next command to the pluginPermissionDeniedException
- If another command isn't allowed, ie. after an Request.COMMAND_EXECUTE
commandvoid setDone(String message, Job.ExecutionTime estimatedExecutionTime)
message
- An optional messageestimatedExecutionTime
- An estimated execution time for the job, null is the same as ExecutionTime.LONG
void setDone(String message)
message
- A message containing any relevant information about what the plugin did, or null.void setError(String message, List<? extends Throwable> errorList)
message
- Information about the reason for the errorerrorList
- Detailed information about the errorvoid setAborted()
void setAborted(String message)
message
- A message containing any relevant information about what the plugin did, or null.