public class ProcessRequestPropertiesCmdImpl extends TaskCommandImpl implements ProcessRequestPropertiesCmd
If the request properties contains the 'XML' parameter, it assumes that the URL command is called in
the tools framework. Otherwise it assumes the URL command is directly called from a URL.
If called from the tools framework, the command will process the request properties to convert the XML
file to name-value pair stored in TypedProperty.
The task command also generates a response properties, set 'viewTaskName' property to 'RedirectView'.
If called from tools framework, it also put 'XMLFile' and 'redirectURL' properties.
Inputs of this task command are:
setRequestProperties(TypedProperty) - sets request properties need to be processed. setCheckURL(boolean) - sets the indicator which determines if the task command needs to check the 'URL' parameter is not null and its length large than 0. default is true.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this implementation of the command.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ProcessRequestPropertiesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCheckURL()
Returns whether a check for the URL parameter is needed.
|
TypedProperty |
getRequestProperties()
Returns the request properties.
|
TypedProperty |
getResponseProperties()
Returns the response properties.
|
java.lang.String |
getXMLFile()
Returns the XML request.
|
boolean |
isToolsFramework()
Whether the command is a tools framework command.
|
void |
performExecute()
Extract the request properties.
|
void |
removeToolsFrameworkProperties(TypedProperty aProperties)
Removes the tools framework objects from the request properties.
|
void |
setCheckURL(boolean abCheckURL)
Sets whether to check for the URL parameter.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public boolean getCheckURL()
getCheckURL
in interface ProcessRequestPropertiesCmd
public TypedProperty getRequestProperties()
getRequestProperties
in interface ProcessRequestPropertiesCmd
public TypedProperty getResponseProperties()
getResponseProperties
in interface ProcessRequestPropertiesCmd
public java.lang.String getXMLFile()
getXMLFile
in interface ProcessRequestPropertiesCmd
public boolean isToolsFramework()
isToolsFramework
in interface ProcessRequestPropertiesCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If there was a problem extracting the request properties.public void removeToolsFrameworkProperties(TypedProperty aProperties)
aProperties
- the request properties.public void setCheckURL(boolean abCheckURL)
setCheckURL
in interface ProcessRequestPropertiesCmd
abCheckURL
- whether to check for the URL parameter.public void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface ProcessRequestPropertiesCmd
aRequestProperties
- the request properties.