Class HandlebarsXPathHelper
java.lang.Object
com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.HandlebarsHelper<String>
com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.HandlebarsXPathHelper
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<String>
- Direct Known Subclasses:
HandlebarsSoapHelper
This class uses javax.xml.xpath.* for reading a xml via xPath so that the result can be used for
response templating.
-
Field Summary
Fields inherited from class com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.HandlebarsHelper
ERROR_PREFIX, ERROR_SUFFIX
-
Constructor Summary
-
Method Summary
Methods inherited from class com.github.tomakehurst.wiremock.extension.responsetemplating.helpers.HandlebarsHelper
getRenderCache, handleError, handleError, handleError
-
Constructor Details
-
HandlebarsXPathHelper
public HandlebarsXPathHelper()
-
-
Method Details
-
apply
public Object apply(String inputXml, com.github.jknack.handlebars.Options options) throws IOException - Throws:
IOException
-
getXPathPrefix
No prefix by default. It allows to extend this class with a specified prefix. Just overwrite this method to do so.- Returns:
- a prefix which will be applied before the specified xpath.
-