Package de.xima.fc.servlet
Class InboxDataDownloadServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.omnifaces.servlet.FileServlet
-
- de.xima.fc.servlet.InboxDataDownloadServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(urlPatterns="/export/inbox-data/get/*") public class InboxDataDownloadServlet extends org.omnifaces.servlet.FileServletServlet for delivering inbox exports.- Since:
- 8.5.4
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InboxDataDownloadServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Does some request verification and, if successful, delegates the delivery of the requested export ZIP file to the parent class, seeFileServlet.doGet( HttpServletRequest, HttpServletResponse).protected FilegetFile(javax.servlet.http.HttpServletRequest request)Returns the requested export ZIP file (null if this file is no longer available for download because the TTL of the relatedInboxDataDownloadServlet.DownloadReferenceis up).protected booleanisAttachment(javax.servlet.http.HttpServletRequest request, String contentType)Always returns true.static StringregisterDownloadRequest(Path exportZipPath)-
Methods inherited from class org.omnifaces.servlet.FileServlet
doHead, getAttachmentName, getContentType, getExpireTime, handleFileNotFound
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getFile
protected File getFile(javax.servlet.http.HttpServletRequest request)
Returns the requested export ZIP file (null if this file is no longer available for download because the TTL of the relatedInboxDataDownloadServlet.DownloadReferenceis up). This method may return a File reference pointing to a non-existent file because the export file might have been deleted in the meantime (explicitly by user action or implicitly by the system). However, these cases are handled by the parent class, seeFileServlet.getFile(HttpServletRequest).- Specified by:
getFilein classorg.omnifaces.servlet.FileServlet- Parameters:
request- The involved HTTP servlet request.- Returns:
- A File reference or null.
-
isAttachment
protected boolean isAttachment(javax.servlet.http.HttpServletRequest request, String contentType)Always returns true.- Overrides:
isAttachmentin classorg.omnifaces.servlet.FileServlet- Returns:
- true
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionDoes some request verification and, if successful, delegates the delivery of the requested export ZIP file to the parent class, seeFileServlet.doGet( HttpServletRequest, HttpServletResponse).- Overrides:
doGetin classorg.omnifaces.servlet.FileServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-