Interface IAsynchronousUploadHandler2
-
public interface IAsynchronousUploadHandler2Handler for the asynchronous upload. New version not tied to net.sf json-lib. the JSONObject is replaced with a java Map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisInvoked(javax.servlet.http.HttpServletRequest request)Defines if this handler is invoked.voidprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,java.lang.Object> mainObject, java.util.List<org.apache.commons.fileupload.FileItem> fileItems)Processes asynchronous upload.
-
-
-
Method Detail
-
process
void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,java.lang.Object> mainObject, java.util.List<org.apache.commons.fileupload.FileItem> fileItems)Processes asynchronous upload. May fillmainObjectwith plugin specific values.- Parameters:
request- requestresponse- responsemainObject- the mainObjectfileItems- uploaded fileItems
-
isInvoked
boolean isInvoked(javax.servlet.http.HttpServletRequest request)
Defines if this handler is invoked. A parameter (like page=plugin-name) should be found in the request.- Parameters:
request- request- Returns:
trueif invoked,falseotherwise.
-
-