Package org.mockserver.model
Class AllOfBody
A composite request-body matcher that matches only when all of its component body
matchers match the same request body.
This composes existing body matcher types without changing their individual semantics — for
example a jsonPath matcher, a jsonSchema matcher and a regex matcher can be
combined so a request body must satisfy every one of them. It is accepted anywhere a body matcher
is accepted.
An empty composition matches every request body. The composite honours the usual not
(negate the whole conjunction) and optional (an absent request body matches) flags; each
component body keeps its own not flag.
- Author:
- jamesdbloom
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.mockserver.model.Body
getCharset, getContentType, getOptional, getRawBytes, getType, withOptionalMethods inherited from class org.mockserver.model.ObjectWithJsonToString
toStringMethods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
fieldsExcludedFromEqualsAndHashCode