Package org.mockserver.templates.engine.helpers
package org.mockserver.templates.engine.helpers
-
ClassesClassDescriptionCryptographic hashing and HMAC helpers for templates.CSV parsing and formatting helpers for templates.HTML entity escaping helpers for templates: escape a string so it can be safely embedded in HTML, and reverse the operation.Regular expression helpers for templates: test for a match, replace all matches, and extract a capture group from the first match.Shared JSONPath / XPath extraction helper used by the Velocity and JavaScript template engines so those engines extract request-body fields with the exact same underlying libraries, error handling and return semantics as the Mustache engine's
jsonPath/xPathlambdas.Velocity tool exposing JSONPath extraction as$jsonPath.find("$.field")(and$jsonPath.jsonPath(...)).Velocity tool exposing XPath extraction as$xPath.find("//field")(and$xPath.xPath(...)).Template helper that exposes scenario state (the WireMock "scenarios" pattern) to response templates, so a value captured or derived in one request can drive a later response.XPath evaluation helper for templates: evaluate an XPath expression against an XML document and return the string result.YAML helpers for templates: convert YAML to JSON and read a field out of a YAML document.