Class FindAndReplacePreprocessor
- java.lang.Object
-
- com.adaptris.tester.runtime.services.preprocessor.FindAndReplacePreprocessor
-
- All Implemented Interfaces:
Preprocessor
public class FindAndReplacePreprocessor extends java.lang.Object implements Preprocessor
In the service test configuration this class is aliased as
find-and-replace-preprocessor
which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description FindAndReplacePreprocessor()
-
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.KeyValuePairSet
getReplacementKeys()
void
setReplacementKeys(KeyValuePairSet replacementKeys)
-
-
-
Method Detail
-
setReplacementKeys
public void setReplacementKeys(KeyValuePairSet replacementKeys)
-
getReplacementKeys
public KeyValuePairSet getReplacementKeys()
-
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
-
-