org.richfaces.org.jboss.seam.web
Class MultipartFilter

java.lang.Object
  extended by org.richfaces.org.jboss.seam.web.MultipartFilter
All Implemented Interfaces:
javax.servlet.Filter

public class MultipartFilter
extends java.lang.Object
implements javax.servlet.Filter

A filter for decoding multipart requests, for use with the file upload control.

Author:
Shane Bryzak

Field Summary
static java.lang.String MULTIPART
           
static java.lang.String PERCENT_BEAN_NAME
          Session bean name where progress bar's percent map will be stored
static java.lang.String REQUESTS_SESSIONS_BEAN_NAME
          Session bean name where multipart requests map will be stored
 
Constructor Summary
MultipartFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 boolean getCreateTempFiles()
           
 int getMaxRequestSize()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setCreateTempFiles(boolean createTempFiles)
           
 void setMaxRequestSize(int maxFileSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTIPART

public static final java.lang.String MULTIPART
See Also:
Constant Field Values

REQUESTS_SESSIONS_BEAN_NAME

public static final java.lang.String REQUESTS_SESSIONS_BEAN_NAME
Session bean name where multipart requests map will be stored

See Also:
Constant Field Values

PERCENT_BEAN_NAME

public static final java.lang.String PERCENT_BEAN_NAME
Session bean name where progress bar's percent map will be stored

See Also:
Constant Field Values
Constructor Detail

MultipartFilter

public MultipartFilter()
Method Detail

getCreateTempFiles

public boolean getCreateTempFiles()

setCreateTempFiles

public void setCreateTempFiles(boolean createTempFiles)

getMaxRequestSize

public int getMaxRequestSize()

setMaxRequestSize

public void setMaxRequestSize(int maxFileSize)

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
java.io.IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException


Copyright © 2008. All Rights Reserved.