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

public class HandlebarsXPathHelper extends HandlebarsHelper<String>
This class uses javax.xml.xpath.* for reading a xml via xPath so that the result can be used for response templating.
  • Constructor Details

    • HandlebarsXPathHelper

      public HandlebarsXPathHelper()
  • Method Details

    • apply

      public Object apply(String inputXml, com.github.jknack.handlebars.Options options) throws IOException
      Throws:
      IOException
    • getXPathPrefix

      protected String 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.