org.mortbay.servlet
Class MultiPartFilter
java.lang.Object
org.mortbay.servlet.MultiPartFilter
public class MultiPartFilter
- extends Object
Multipart Form Data 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.
- Author:
- Greg Wilkins, Jim Crossley
Method Summary |
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
void |
init(FilterConfig filterConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiPartFilter
public MultiPartFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Throws:
ServletException
- See Also:
Filter
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Throws:
IOException
ServletException
- See Also:
Filter
destroy
public void destroy()
- See Also:
Filter
Copyright © 2007 Mort Bay Consulting. All Rights Reserved.