Input with multipart/form-data
23.3. Input with multipart/form-data When writing a JAX-RS service, RESTEasy provides an interface that allows you to read in multipart/form-data mime type. "multipart/form-data" is often found in web application HTML Form documents and is generally used to upload files. The form-data format is the same as other multipart formats, except that each inlined piece of content has a name associated with it. The interface used for form-data input is org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput public interface MultipartFormDataInput extends MultipartInput { @Deprecated Map getFormData(); Map> getFormDataMap(); T getFormDataPart(String key, Class rawType, Type genericType) throws IOException; T getFormDataPart(String key, GenericType type) throws IOException; } It works in much the same way as MultipartInput described earlier in this chapter.