Class AttachmentServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class AttachmentServlet extends DownloadServlet
A servlet to download file attachments.
Since:
7.3
Version:
12.1
Author:
Luke
See Also:
  • Constructor Details

    • AttachmentServlet

      public AttachmentServlet()
  • Method Details

    • getServletInfo

      public String getServletInfo()
      Returns the servlet description.
      Specified by:
      getServletInfo in interface jakarta.servlet.Servlet
      Overrides:
      getServletInfo in class jakarta.servlet.GenericServlet
      Returns:
      name, author and copyright info for this servlet
    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException
      Processes HTTP GET requests for attachments.
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - the HTTP request
      rsp - the HTTP response
      Throws:
      IOException - if a network I/O error occurs