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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 class jakarta.servlet.http.HttpServlet
      Parameters:
      request - the servlet request
      response - the servlet response
      Throws:
      IOException
      jakarta.servlet.ServletException