Annotation Type PartMap


@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface PartMap
A Map<String, ?> parameter of a @Multipart method adding one part per entry, for a set of field names not known until runtime - the @Part counterpart to @QueryMap and @HeaderMap. Each entry's value is handled the same way a @Part value would be: String as a plain form field, java.io.File/byte[]/java.io.InputStream as a file part named after the entry's key - or wrap a File/byte[]/ InputStream value in PartValue to send it under a different file name. A null map or a null entry value is skipped, not an error. Combines with fixed @Part parameters on the same method; only valid alongside @Multipart.