Package kong.unirest.core
Interface BodyMatcher
- All Known Implementing Classes:
EqualsBodyMatcher
,FieldMatcher
public interface BodyMatcher
Body Matchers can be used to evaluate a entity body.
This is represented by one or more (in the case of multi-part) sections
these sections are represented as strings in the same way as toString represents the part
For a single entity like a JSON payload this is simply going to be the JSON String
For field params it will be a key value pair like 'fruit=orange`
For binary types it will be some kind of indication like a file path.
-
Method Summary
Modifier and TypeMethodDescriptionindicates if the Matcher succeeded in matching the body
-
Method Details
-
matches
indicates if the Matcher succeeded in matching the body- Parameters:
body
- the list of body parts- Returns:
- MatchStatus indicating if the Matcher succeeded in matching the body
-