Class VarSubPropsPreprocessor
- java.lang.Object
-
- com.adaptris.tester.runtime.services.preprocessor.VarSubPropsPreprocessor
-
- All Implemented Interfaces:
Preprocessor
public class VarSubPropsPreprocessor extends java.lang.Object implements Preprocessor
In the service test configuration this class is aliased as
properties-variable-substitution-preprocessor
which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description VarSubPropsPreprocessor()
VarSubPropsPreprocessor(java.util.Map<java.lang.String,java.lang.String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
execute(java.lang.String input, ServiceTestConfig config)
Execute the preprocessors against the service input returning updated service.java.util.Properties
getKvpAsProperties()
KeyValuePairSet
getProperties()
void
setProperties(KeyValuePairSet properties)
-
-
-
Method Detail
-
execute
public java.lang.String execute(java.lang.String input, ServiceTestConfig config) throws PreprocessorException
Execute the preprocessors against the service input returning updated service.- Specified by:
execute
in interfacePreprocessor
- Parameters:
input
- Service to process- Returns:
- Processed service
- Throws:
PreprocessorException
- wraps any thrown Exception
-
setProperties
public void setProperties(KeyValuePairSet properties)
-
getProperties
public KeyValuePairSet getProperties()
-
getKvpAsProperties
public java.util.Properties getKvpAsProperties()
-
-