public class NamespaceRequestWrapper extends Object implements Request
The main usage for this class is when a master plug-in needs to use other child plug-ins. By wrapping the request with an instance of this class it makes it possible to forward the request to the child plug-in without having to worry about name clashes among the children.
NamespaceParameterValuesWrapper
,
NamespacePluginParameter
Modifier and Type | Field and Description |
---|---|
private String |
namespace |
private Request |
parent |
COMMAND_CONFIGURE_JOB, COMMAND_CONFIGURE_PLUGIN, COMMAND_EXECUTE
Constructor and Description |
---|
NamespaceRequestWrapper(Request parent,
String namespace)
Create a new namespace wrapper for the parent request.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommand()
The command the plugin should execute.
|
Object |
getParameterValue(String name)
Get the value for the parameter with the specified name.
|
List<?> |
getParameterValues(String name)
Get the values for the parameter with the specified name.
|
boolean |
isAllowedImmediateExecution()
If this plugin has been allowed immediate execution or not.
|
public String getCommand()
Request
getCommand
in interface Request
public Object getParameterValue(String name) throws ParameterException
Request
getParameterValue
in interface Request
name
- The name of the parameterParameterException
- If getting the value fails.public List<?> getParameterValues(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