public class MultiPartFilter extends Object implements Filter
This class decodes the multipart/form-data stream sent by a HTML form that uses a file input item. Any files sent are stored to a tempary file and a File object added to the request as an attribute. All other values are made available via the normal getParameter API and the setCharacterEncoding mechanism is respected when converting bytes to Strings. If the init paramter "delete" is set to "true", any files created will be deleted when the current request returns.
| Constructor and Description |
|---|
MultiPartFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
void |
init(FilterConfig filterConfig) |
public void init(FilterConfig filterConfig) throws ServletException
init in interface FilterServletExceptionFilter.init(javax.servlet.FilterConfig)public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter in interface FilterIOExceptionServletExceptionFilter.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)public void destroy()
destroy in interface FilterFilter.destroy()Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.