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 /**
13 * Get the first file part for the given field name
14 *
15 * @param field The field name
16 * @return The first file part, or null if none was found
17 */
18 FilePart getFilePart(String field);
19
20 /**
21 * Get the first file parts for the given field name
22 *
23 * @param field The field name
24 * @return The first file part, or null if none was found
25 */
26 Collection<FilePart> getFileParts(String field);
27
28 }