Class MultipartUploadFilter
java.lang.Object
org.glassfish.grizzly.servlet.extras.MultipartUploadFilter
- All Implemented Interfaces:
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.
- Since:
- 2.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFilter 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 final StringThe name of the request attribute with which an array of all Files (java.io.File[]) that were uploaded will be stored. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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. If this parameter is omitted, it will be assumed that the files will be deleted after request end.- See Also:
-
UPLOADED_FILES
The name of the request attribute with which an array of all Files (java.io.File[]) that were uploaded will be stored.- See Also:
-
-
Constructor Details
-
MultipartUploadFilter
public MultipartUploadFilter()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejavax.servlet.Filter
-