example.resource.Multipart Maven / Gradle / Ivy
package example.resource;
import example.model.User;
import java.io.InputStream;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import org.glassfish.jersey.media.multipart.FormDataParam;
@Path("/multipart")
public interface Multipart {
/**
*/
@POST
@Consumes("multipart/form-data")
void postMultipart(@FormDataParam("appBundle") InputStream appBundleStream,
@FormDataParam("appBundle") FormDataContentDisposition appBundleDisposition,
@FormDataParam("configFile") InputStream configFileStream,
@FormDataParam("configFile") FormDataContentDisposition configFileDisposition,
@FormDataParam("consumed") User consumed, @FormDataParam("heyBool") boolean heyBool);
}