fr.paris.lutece.plugins.form.service.upload
Class FormAsynchronousUploadHandler

java.lang.Object
  extended by fr.paris.lutece.plugins.form.service.upload.FormAsynchronousUploadHandler
All Implemented Interfaces:
fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler

public class FormAsynchronousUploadHandler
extends java.lang.Object
implements fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler

FormAsynchronousUploadHandler.

See Also:
getFileItem(String, String), removeFileItem(String, String)

Field Summary
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.apache.commons.fileupload.FileItem>> _mapAsynchronousUpload
          contains uploaded file items
 
Constructor Summary
FormAsynchronousUploadHandler()
           
 
Method Summary
static org.apache.commons.fileupload.FileItem getFileItem(java.lang.String strIdEntry, java.lang.String strSessionId)
          Gets the fileItem for the entry and the given session.
 boolean isInvoked(javax.servlet.http.HttpServletRequest request)
          
 void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, net.sf.json.JSONObject mainObject, java.util.List<org.apache.commons.fileupload.FileItem> fileItems)
          
static void removeFileItem(java.lang.String strIdEntry, java.lang.String strSessionId)
          Removes the file from the list.
static void removeSessionFiles(java.lang.String strSessionId)
          Removes all files associated to the session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mapAsynchronousUpload

public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.apache.commons.fileupload.FileItem>> _mapAsynchronousUpload
contains uploaded file items

Constructor Detail

FormAsynchronousUploadHandler

public FormAsynchronousUploadHandler()
Method Detail

isInvoked

public boolean isInvoked(javax.servlet.http.HttpServletRequest request)

Specified by:
isInvoked in interface fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler

process

public void process(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response,
                    net.sf.json.JSONObject mainObject,
                    java.util.List<org.apache.commons.fileupload.FileItem> fileItems)

Specified by:
process in interface fr.paris.lutece.portal.web.upload.IAsynchronousUploadHandler

getFileItem

public static org.apache.commons.fileupload.FileItem getFileItem(java.lang.String strIdEntry,
                                                                 java.lang.String strSessionId)
Gets the fileItem for the entry and the given session.

Parameters:
strIdEntry - the entry
strSessionId - the session id
Returns:
the fileItem found, null otherwise.

removeFileItem

public static void removeFileItem(java.lang.String strIdEntry,
                                  java.lang.String strSessionId)
Removes the file from the list.

Parameters:
strIdEntry - the entry id
strSessionId - the session id

removeSessionFiles

public static void removeSessionFiles(java.lang.String strSessionId)
Removes all files associated to the session

Parameters:
strSessionId - the session id


Copyright © 2012 Mairie de Paris. All Rights Reserved.