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