Package org.mockserver.matchers
Class WasmBodyMatcher
java.lang.Object
Body matcher that delegates matching to a WASM module loaded in the
WasmStore.
When WASM support is disabled (wasmEnabled=false), the matcher always
returns false (no match) — consistent with the fail-closed design.
In addition to the request body, the matcher exposes the request method, path and
headers to the module via the richer WASM ABI (see WasmRuntime). Modules
that only export the legacy body-only match function continue to work
unchanged.
Fails closed: returns false if the module is not loaded or throws.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]booleanisBlank()booleanmatches(MatchDifference context, String actual) Methods inherited from class org.mockserver.matchers.NotMatcher
notMatcherMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, toString
-
Constructor Details
-
WasmBodyMatcher
-
-
Method Details
-
matches
-
isBlank
public boolean isBlank() -
fieldsExcludedFromEqualsAndHashCode
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-