Class MultipartMatcher

All Implemented Interfaces:
Matcher<MultipartMatcher.MultipartInput>

public class MultipartMatcher extends BodyMatcher<MultipartMatcher.MultipartInput>
Matches a multipart/form-data request body at the field level.

The body matcher decodes the actual request's multipart body into per-field Parameters maps (values, filenames and part content types) and matches each against the corresponding map declared on the MultipartBody, reusing MultiValueMapMatcher so the matching semantics are identical to form-parameter matching (regular expressions, negation, sub-set keys).

Author:
jamesdbloom