Class DownloadExportServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.levigo.jadice.web.server.export.DownloadExportServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class DownloadExportServlet
extends jakarta.servlet.http.HttpServlet
Offers clients to download files containing a document export. Document exports are intended to
be used for printing only. Any other processing other than printing is not recommended.
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanup
(ExportMeta meta, String id) protected void
doGet
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
init()
protected void
prepareResponseFor
(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) protected void
streamFileTo
(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Constructor Details
-
DownloadExportServlet
public DownloadExportServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classjakarta.servlet.GenericServlet
- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
streamFileTo
protected void streamFileTo(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) throws IOException - Throws:
IOException
-
prepareResponseFor
protected void prepareResponseFor(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) -
cleanup
-