1 package com.atlassian.plugins.rest.common.multipart;
2
3 import java.util.Collection;
4
5 /**
6 * A parsed multipart form
7 *
8 * @since 2.4
9 */
10 public interface MultipartForm {
11 /**
12 * Get the first file part for the given field name
13 *
14 * @param field The field name
15 * @return The first file part, or null if none was found
16 */
17 FilePart getFilePart(String field);
18
19 /**
20 * Get the first file parts for the given field name
21 *
22 * @param field The field name
23 * @return The first file part, or null if none was found
24 */
25 Collection<FilePart> getFileParts(String field);
26
27 }