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
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) voidinit()protected voidprepareResponseFor(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) protected voidstreamFileTo(jakarta.servlet.http.HttpServletResponse response, ExportMeta meta) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
EXPORT_URL
- See Also:
-
-
Constructor Details
-
DownloadExportServlet
public DownloadExportServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin 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:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
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)
-