nu.validator.servlet
Class MultipartFormDataFilter
java.lang.Object
nu.validator.servlet.MultipartFormDataFilter
- All Implemented Interfaces:
- Filter
public class MultipartFormDataFilter
- extends Object
- implements Filter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTENSION
private static Pattern EXTENSION
extensionToType
private static Map<String,String> extensionToType
MultipartFormDataFilter
public MultipartFormDataFilter()
utf8ByteStreamToString
private static String utf8ByteStreamToString(InputStream stream)
throws IOException
- Throws:
IOException
putParam
private static void putParam(Map<String,String[]> params,
String key,
String value)
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
doFilter
public void doFilter(ServletRequest req,
ServletResponse res,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
init
public void init(FilterConfig arg0)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException