Uses of Interface
org.mockserver.matchers.BodySource
Packages that use BodySource
-
Uses of BodySource in org.mockserver.codec
Methods in org.mockserver.codec with parameters of type BodySourceModifier and TypeMethodDescriptionJsonSchemaBodyDecoder.convertToJson(BodySource source, BodyMatcher<?> bodyMatcher) Shared conversion used by both request matching (HttpRequest) and response matching (HttpResponse), driven only through theBodySourceabstraction. -
Uses of BodySource in org.mockserver.matchers
Methods in org.mockserver.matchers that return BodySourceModifier and TypeMethodDescriptionstatic BodySourceBodyMatching.of(HttpRequest request) Adapts anHttpRequestto theBodySourceabstraction, exposing the request's per-request XML→JSON cache (HttpRequest.getOrComputeConvertedBody(org.mockserver.model.HttpRequest.ConvertedBodyType, java.util.function.Supplier<java.lang.String>)) so the conversion is memoised exactly as on the historical request path, and carrying the request itself for the JSON-conversion failure log.static BodySourceBodyMatching.of(HttpResponse response) Adapts anHttpResponseto theBodySourceabstraction.