1 package com.atlassian.plugins.rest.common.multipart;
2
3 import javax.servlet.http.HttpServletRequest;
4
5 public interface MultipartHandler
6 {
7 /**
8 * Get the first file part for the given field name from the request
9 *
10 * @param request The request
11 * @param field The field name
12 * @return The first file part, or null if none was found
13 */
14 FilePart getFilePart(HttpServletRequest request, String field);
15
16 /**
17 * Parse the multipart form from this request
18 *
19 * @param request The request to parse
20 * @return The form
21 * @since 2.4
22 */
23 MultipartForm getForm(HttpServletRequest request);
24 }