org.chorem.pollen.ui.interceptors
Class PollenFileUploadInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.FileUploadInterceptor
org.chorem.pollen.ui.interceptors.PollenFileUploadInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork2.interceptor.Interceptor, Serializable
public class PollenFileUploadInterceptor
- extends org.apache.struts2.interceptor.FileUploadInterceptor
Overrides the default file upload interceptor to be able to match uploaded
files in specific fields.
We want to put upload files in a list (field is file for example) and then
fileName in another list but the default interceptor does not accept this
since it suffix the filename field with FileName...
TODO tchemit 2012-03-05 submit a patch to struts guys to avoid this fork.
- Since:
- 1.3
- Author:
- tchemit
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts2.interceptor.FileUploadInterceptor |
allowedExtensionsSet, allowedTypesSet, LOG, maximumSize, useActionMessageBundle |
|
Method Summary |
String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation)
|
| Methods inherited from class org.apache.struts2.interceptor.FileUploadInterceptor |
acceptFile, setAllowedExtensions, setAllowedTypes, setMatcher, setMaximumSize, setUseActionMessageBundle |
| Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor |
destroy, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILENAME_PATTERN
protected final Pattern FILENAME_PATTERN
PollenFileUploadInterceptor
public PollenFileUploadInterceptor()
intercept
public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws Exception
- Specified by:
intercept in interface com.opensymphony.xwork2.interceptor.Interceptor- Overrides:
intercept in class org.apache.struts2.interceptor.FileUploadInterceptor
- Throws:
Exception
Copyright © 2009-2012 CodeLutin. All Rights Reserved.