static class ExternalProgramExecutor.RequestWrapper extends java.lang.Object implements Request
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
command |
private java.util.Map<java.lang.String,java.lang.Object> |
parameters |
private Request |
parent |
COMMAND_CONFIGURE_JOB, COMMAND_CONFIGURE_PLUGIN, COMMAND_EXECUTE
Constructor and Description |
---|
ExternalProgramExecutor.RequestWrapper(java.lang.String command,
Request parent) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommand()
The command the plugin should execute.
|
java.lang.Object |
getParameterValue(java.lang.String name)
Get the value for the parameter with the specified name.
|
java.util.List<?> |
getParameterValues(java.lang.String name)
Get the values for the parameter with the specified name.
|
boolean |
isAllowedImmediateExecution()
If this plugin has been allowed immediate execution or not.
|
(package private) void |
setParameter(java.lang.String key,
java.lang.Object value) |
private final java.lang.String command
private final Request parent
private final java.util.Map<java.lang.String,java.lang.Object> parameters
ExternalProgramExecutor.RequestWrapper(java.lang.String command, Request parent)
void setParameter(java.lang.String key, java.lang.Object value)
public java.lang.String getCommand()
Request
getCommand
in interface Request
public java.lang.Object getParameterValue(java.lang.String name) throws ParameterException
Request
getParameterValue
in interface Request
name
- The name of the parameterParameterException
- If getting the value fails.public java.util.List<?> getParameterValues(java.lang.String name)
Request
getParameterValues
in interface Request
name
- The name of the parameterpublic boolean isAllowedImmediateExecution()
Request
Response.setExecuteImmediately(String, Job.ExecutionTime, boolean)
or, if the plugin is a ImmediateDownloadExporter
,
Response.setDownloadImmediately(String, Job.ExecutionTime, boolean)
.isAllowedImmediateExecution
in interface Request