|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.filter.FileUploadFilter
public class FileUploadFilter
A filter for handling File Upload that uses the Jakarta Commons FileUpload library. An org.apache.commons.fileupload.FileItem will be placed in the action input.
| Constructor Summary | |
|---|---|
FileUploadFilter()
|
|
FileUploadFilter(int maxInMemorySize)
|
|
FileUploadFilter(int maxInMemorySize,
int maxSizeToThrowError)
|
|
FileUploadFilter(int maxInMemorySize,
int maxSizeToThrowError,
String tempDirInsideWebInf)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed. |
String |
filter(InvocationChain chain)
Executes the filter. |
protected javax.servlet.http.HttpServletRequest |
getRequest(Action action)
Because we are using the FileUpload from Jakarta Commons, and because it requires the HttpServletRequest, there is nothing we can do about it besides fetching the HttpServletRequest and giving it to the FileUpload class. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileUploadFilter()
public FileUploadFilter(int maxInMemorySize)
public FileUploadFilter(int maxInMemorySize,
int maxSizeToThrowError)
public FileUploadFilter(int maxInMemorySize,
int maxSizeToThrowError,
String tempDirInsideWebInf)
| Method Detail |
|---|
protected javax.servlet.http.HttpServletRequest getRequest(Action action)
public String filter(InvocationChain chain)
throws Exception
Filter
filter in interface Filterchain - The InvocationChain for the action this filter is being applied to.
Exceptionpublic void destroy()
Filter
destroy in interface Filterpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||