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 Type
    Method
    Description
    boolean
    isInvoked(javax.servlet.http.HttpServletRequest request)
    Defines if this handler is invoked.
    void
    process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,Object> mainObject, List<org.apache.commons.fileupload.FileItem> fileItems)
    Processes asynchronous upload.
  • Method Details

    • process

      void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map<String,Object> mainObject, List<org.apache.commons.fileupload.FileItem> fileItems)
      Processes asynchronous upload. May fill mainObject with plugin specific values.
      Parameters:
      request - request
      response - response
      mainObject - the mainObject
      fileItems - 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:
      true if invoked, false otherwise.