Class XhrFileUploadServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
sk.iway.iwcm.components.upload.XhrFileUploadServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet("/XhrFileUpload") public class XhrFileUploadServlet extends javax.servlet.http.HttpServlet
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    delete(String hash)
    Deprecated.
    use XhrFileUploadService.delete(String hash)
    protected void
    doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    Vrati service
    static String
    Deprecated.
    use XhrFileUploadService.getTempFileName Vrati meno suboru podla zadaneho kluca
    static String
    Deprecated.
    use XhrFileUploadService.getTempFilePath Vrati cestu k temp suboru, pozuiva sa vo FormMail na detekciu ci subor vyhovuje poziadavkam
    static String
    moveAndReplaceFile(String fileKey, String dir, String fileNameParam)
    Deprecated.
    use XhrFileUploadService.moveAndReplaceFile
    static String
    moveFile(String fileKey, String dir)
    Deprecated.
    use XhrFileUploadService.moveFile presunie uploadnuty subor

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, 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 Details

    • XhrFileUploadServlet

      public XhrFileUploadServlet()
  • Method Details

    • doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • moveFile

      @Deprecated public static String moveFile(String fileKey, String dir) throws IOException
      Deprecated.
      use XhrFileUploadService.moveFile presunie uploadnuty subor
      Parameters:
      fileKey - - identifikator suboru
      dir - - cielovy adresar
      Returns:
      - nazov suboru
      Throws:
      IOException
    • moveAndReplaceFile

      @Deprecated public static String moveAndReplaceFile(String fileKey, String dir, String fileNameParam) throws IOException
      Deprecated.
      use XhrFileUploadService.moveAndReplaceFile
      Parameters:
      fileKey - - identifikator suboru
      dir - - cielovy adresar
      fileNameParam - - nazov suboru
      Returns:
      - nazov suboru
      Throws:
      IOException
    • delete

      @Deprecated public static boolean delete(String hash)
      Deprecated.
      use XhrFileUploadService.delete(String hash)
      Parameters:
      hash - - identifikator suboru
      Returns:
      - boolean
    • getTempFileName

      @Deprecated public static String getTempFileName(String fileKey)
      Deprecated.
      use XhrFileUploadService.getTempFileName Vrati meno suboru podla zadaneho kluca
      Parameters:
      fileKey - - identifikator suboru
      Returns:
      - String
    • getTempFilePath

      @Deprecated public static String getTempFilePath(String fileKey)
      Deprecated.
      use XhrFileUploadService.getTempFilePath Vrati cestu k temp suboru, pozuiva sa vo FormMail na detekciu ci subor vyhovuje poziadavkam
      Parameters:
      fileKey - - identifikator suboru
      Returns:
      - String
    • getService

      public static XhrFileUploadService getService()
      Vrati service
      Returns:
      - XhrFileUploadService