Class RemoveNodePreprocessor
- java.lang.Object
-
- com.adaptris.tester.runtime.XpathCommon
-
- com.adaptris.tester.runtime.services.preprocessor.RemoveNodePreprocessor
-
- All Implemented Interfaces:
Preprocessor
public class RemoveNodePreprocessor extends XpathCommon implements Preprocessor
Removes node from XML atXpathCommon.getXpath()
.In the service test configuration this class is aliased as
remove-node-preprocessor
which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description RemoveNodePreprocessor()
-
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.-
Methods inherited from class com.adaptris.tester.runtime.XpathCommon
getNamespaceContext, getXpath, nodeToString, selectSingleBoolean, selectSingleNode, selectSingleNode, setNamespaceContext, setXpath
-
-
-
-
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
-
-