Interface IAsynchronousUploadHandler2
public interface IAsynchronousUploadHandler2
Handler for the asynchronous upload. New version not tied to net.sf json-lib. the JSONObject is replaced with a java Map.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisInvoked(jakarta.servlet.http.HttpServletRequest request) Defines if this handler is invoked.voidprocess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String, Object> mainObject, List<fr.paris.lutece.portal.service.upload.MultipartItem> fileItems) Processes asynchronous upload.
-
Method Details
-
process
void process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Map<String, Object> mainObject, List<fr.paris.lutece.portal.service.upload.MultipartItem> fileItems) Processes asynchronous upload. May fillmainObjectwith plugin specific values.- Parameters:
request- requestresponse- responsemainObject- the mainObjectfileItems- uploaded fileItems
-
isInvoked
boolean isInvoked(jakarta.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.
-