org.tinyjee.maven.dim.utils
Class AbstractAliasHandler
java.lang.Object
org.tinyjee.maven.dim.utils.AbstractAliasHandler
- All Implemented Interfaces:
- RequestParameterTransformer
- Direct Known Subclasses:
- DirectoryLoader.AliasHandler, InterfaceScanner.AliasHandler, JavaSourceLoader.AliasHandler, PropertiesLoader.AliasHandler, ScriptInvoker.AliasHandler, SvgLoader.AliasHandler, XmlLoader.AliasHandler
public abstract class AbstractAliasHandler
- extends Object
- implements RequestParameterTransformer
Implements an handler that allows the definition of aliases for request parameters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAliasHandler
protected AbstractAliasHandler(String triggerParameter,
String targetParameter,
String sourceClass)
- Constructs a new AbstractAliasHandler for the given values.
- Parameters:
triggerParameter
- the parameter to trigger.targetParameter
- the parameter to transfer the trigger value to.sourceClass
- the source class to set if the trigger was present.
transformParameters
public void transformParameters(Map<String,Object> requestParams)
- Transforms the specified request parameters.
- Specified by:
transformParameters
in interface RequestParameterTransformer
- Parameters:
requestParams
- the request params to modify.