Package sk.iway.iwcm.components.upload
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated.use XhrFileUploadService.delete(String hash)protected void
doPost
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) static XhrFileUploadService
Vrati servicestatic String
getTempFileName
(String fileKey) Deprecated.use XhrFileUploadService.getTempFileName Vrati meno suboru podla zadaneho klucastatic String
getTempFilePath
(String fileKey) Deprecated.use XhrFileUploadService.getTempFilePath Vrati cestu k temp suboru, pozuiva sa vo FormMail na detekciu ci subor vyhovuje poziadavkamstatic String
moveAndReplaceFile
(String fileKey, String dir, String fileNameParam) Deprecated.use XhrFileUploadService.moveAndReplaceFilestatic String
Deprecated.use XhrFileUploadService.moveFile presunie uploadnuty suborMethods 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
-
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 classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
moveFile
Deprecated.use XhrFileUploadService.moveFile presunie uploadnuty subor- Parameters:
fileKey
- - identifikator suborudir
- - 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 suborudir
- - cielovy adresarfileNameParam
- - nazov suboru- Returns:
- - nazov suboru
- Throws:
IOException
-
delete
Deprecated.use XhrFileUploadService.delete(String hash)- Parameters:
hash
- - identifikator suboru- Returns:
- - boolean
-
getTempFileName
Deprecated.use XhrFileUploadService.getTempFileName Vrati meno suboru podla zadaneho kluca- Parameters:
fileKey
- - identifikator suboru- Returns:
- - String
-
getTempFilePath
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
Vrati service- Returns:
- - XhrFileUploadService
-