Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mentawai.filter
Class FileUploadFilter  view FileUploadFilter download FileUploadFilter.java

java.lang.Object
  extended byorg.mentawai.filter.FileUploadFilter
All Implemented Interfaces:
org.mentawai.core.Filter

public class FileUploadFilter
extends java.lang.Object
implements org.mentawai.core.Filter


Field Summary
private  int maxInMemorySize
           
private  int maxInRequestSize
           
private  java.lang.String tempDir
           
 
Constructor Summary
FileUploadFilter()
           
FileUploadFilter(int maxInMemorySize, int maxInRequestSize, java.lang.String tempDir)
           
 
Method Summary
 void destroy()
          Gives a chance to the filter to deallocalte any resources before it is destroyed.
 java.lang.String filter(org.mentawai.core.InvocationChain chain)
          Executes the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxInMemorySize

private int maxInMemorySize

maxInRequestSize

private int maxInRequestSize

tempDir

private java.lang.String tempDir
Constructor Detail

FileUploadFilter

public FileUploadFilter()

FileUploadFilter

public FileUploadFilter(int maxInMemorySize,
                        int maxInRequestSize,
                        java.lang.String tempDir)
Method Detail

filter

public java.lang.String filter(org.mentawai.core.InvocationChain chain)
                        throws java.lang.Exception
Description copied from interface: org.mentawai.core.Filter
Executes the filter.

Specified by:
filter in interface org.mentawai.core.Filter

destroy

public void destroy()
Description copied from interface: org.mentawai.core.Filter
Gives a chance to the filter to deallocalte any resources before it is destroyed. This is called when the web application is stopped, in other words, this has nothing to do with garbage collection.

Specified by:
destroy in interface org.mentawai.core.Filter