Class XmlBodyProcessor
-
- All Implemented Interfaces:
-
de.smartsquare.squit.mediatype.BodyProcessor
public final class XmlBodyProcessor implements BodyProcessor
XML-specific BodyProcessor implementation. It allows for user-supplied pre- and post-processor implementations to run on the generated Document instances and saves the results.
-
-
Constructor Summary
Constructors Constructor Description XmlBodyProcessor()
-
Method Summary
Modifier and Type Method Description UnitpreProcess(Path requestPath, Path responsePath, Path resultRequestPath, Path resultResponsePath, Config config)Processes the request and response at the given requestPath and responsePath with the given config and writes the results to the resultRequestPath and resultResponsePath. UnitpostProcess(Path actualResponsePath, Path expectedResponsePath, Path resultActualResponseFilePath, Config config)Processes the request and response at the given actualResponsePath and expectedResponsePath with the given config and writes the resulting actual response to the resultActualResponseFilePath. -
-
Method Detail
-
preProcess
Unit preProcess(Path requestPath, Path responsePath, Path resultRequestPath, Path resultResponsePath, Config config)
Processes the request and response at the given requestPath and responsePath with the given config and writes the results to the resultRequestPath and resultResponsePath.
-
postProcess
Unit postProcess(Path actualResponsePath, Path expectedResponsePath, Path resultActualResponseFilePath, Config config)
Processes the request and response at the given actualResponsePath and expectedResponsePath with the given config and writes the resulting actual response to the resultActualResponseFilePath.
-
-
-
-