Package com.avoka.fc.core.servlet
Class AttachmentViewServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.avoka.fc.core.servlet.AttachmentViewServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class AttachmentViewServlet
extends jakarta.servlet.http.HttpServlet
Provide an attachments download servlet for users reviewing their attachments. Security is provide via the attachmentKey reference.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The attachmentKey request parameter.static final String
The attachment servlet path.Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handle a get method to retrieve the users attachment.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
SERVLET_PATH
The attachment servlet path.- See Also:
-
ID_PARAM
The attachmentKey request parameter.- See Also:
-
-
Constructor Details
-
AttachmentViewServlet
public AttachmentViewServlet()
-
-
Method Details
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException Handle a get method to retrieve the users attachment.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Parameters:
request
- the servlet requestresponse
- the servlet response- Throws:
IOException
jakarta.servlet.ServletException
-