@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface MultipartConfig
Servlet
on
which it is declared expects requests to made using the multipart/form-data
MIME type. Part
components of a given multipart/form-data
request are retrieved by a Servlet annotated with
MultipartConfig
by calling
HttpServletRequest.getPart(java.lang.String)
or
HttpServletRequest.getParts()
.@WebServlet("/upload")}
@MultipartConfig()
public class UploadServlet extends
HttpServlet ... }
Modifier and Type | Optional Element and Description |
---|---|
int |
fileSizeThreshold |
java.lang.String |
location |
long |
maxFileSize |
long |
maxRequestSize |
public abstract java.lang.String location
public abstract long maxFileSize
public abstract long maxRequestSize
multipart/form-data
public abstract int fileSizeThreshold
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.