org.apache.cocoon.servlet.multipart
Class MultipartFilter

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.servlet.multipart.MultipartFilter
All Implemented Interfaces:
Filter

public class MultipartFilter
extends org.apache.cocoon.util.AbstractLogEnabled
implements Filter

Servlet filter for handling multi part MIME uploads

Version:
$Id: MultipartFilter.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  BeanFactory cocoonBeanFactory
          Root Cocoon Bean Factory.
protected  RequestFactory requestFactory
          The RequestFactory is responsible for wrapping multipart-encoded forms and for handing the file payload of incoming requests
protected  ServletContext servletContext
          The servlet context.
protected  ServletSettings servletSettings
          The special servlet settings.
protected  org.apache.cocoon.configuration.Settings settings
          The root settings.
 
Constructor Summary
MultipartFilter()
           
 
Method Summary
protected  void configure()
           
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain)
           
 void init(FilterConfig config)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestFactory

protected RequestFactory requestFactory
The RequestFactory is responsible for wrapping multipart-encoded forms and for handing the file payload of incoming requests


cocoonBeanFactory

protected BeanFactory cocoonBeanFactory
Root Cocoon Bean Factory.


settings

protected org.apache.cocoon.configuration.Settings settings
The root settings.


servletSettings

protected ServletSettings servletSettings
The special servlet settings.


servletContext

protected ServletContext servletContext
The servlet context.

Constructor Detail

MultipartFilter

public MultipartFilter()
Method Detail

init

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

destroy

public void destroy()
Specified by:
destroy in interface Filter
See Also:
Filter.destroy()

configure

protected void configure()

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException
See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.