gov.nih.nci.caarray.services.util.file
Class ProcessFileUpload

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by gov.nih.nci.caarray.services.util.file.ProcessFileUpload
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ProcessFileUpload
extends javax.servlet.http.HttpServlet

This servlet is called up by the HttpFileUploadApplet to process files that are sent from the client machines. It does several things. First it extracts meta data about the incoming file, and converts them into a HttpUploadedFileData object. It then reads file and writes them to the designated directory on the file server. Thirdly, depending on a boolean setting of the HttpFileUploadCache object, it deletes the files it just wrote if isStopped flag is set to true, otherwise do nothing. Lastly if the isStopped flag is set to false, it adds HttpUploadedFileData object to the HttpFileUploadCache object to be used by the subsequent file parsing service.

Author:
zhoujim
See Also:
Serialized Form

Constructor Summary
ProcessFileUpload()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessFileUpload

public ProcessFileUpload()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Overrides:
doPost in class javax.servlet.http.HttpServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
Overrides:
doGet in class javax.servlet.http.HttpServlet