org.mortbay.servlet

Class MultiPartFilter

Implemented Interfaces:
Filter

public class MultiPartFilter
extends java.lang.Object
implements Filter

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.

Version:
$Id: MultiPartFilter.java,v 1.7 2005/11/03 18:21:59 gregwilkins Exp $
Authors:
Greg Wilkins
Jim Crossley

Method Summary

void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void
init(FilterConfig filterConfig)

Method Details

destroy

public void destroy()
Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
            throws IOException,
                   ServletException
Specified by:
doFilter in interface Filter

init

public void init(FilterConfig filterConfig)
            throws ServletException
Specified by:
init in interface Filter

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.