public class MultipartUploadFilter extends Object implements javax.servlet.Filter
A Filter
implementation that leverages the non-blocking multipart
processing API.
NOTE: this filter is implementation specific and will not function properly outside of the Grizzly 2.x Servlet implementation.
Modifier and Type | Field and Description |
---|---|
static String |
DELETE_ON_REQUEST_END
Filter initialization parameter name to control whether or not
the temp files used to store the uploaded file bytes will be deleted
after the request ends.
|
static String |
UPLOADED_FILES
The name of the request attribute with which an array of all Files (java.io.File[])
that were uploaded will be stored.
|
Constructor and Description |
---|
MultipartUploadFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String DELETE_ON_REQUEST_END
public static final String UPLOADED_FILES
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2015 Oracle Corporation. All rights reserved.