Class AttachmentServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.BasicAuthServlet
org.deltava.servlet.DownloadServlet
org.deltava.servlet.AttachmentServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
A servlet to download file attachments.
- Since:
- 7.3
- Version:
- 11.3
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.deltava.servlet.GenericServlet
GenericServlet.ForbiddenException, GenericServlet.NotFoundException, GenericServlet.ServletSecurityContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(HttpServletRequest req, HttpServletResponse rsp) Processes HTTP GET requests for attachments.Returns the servlet description.Methods inherited from class org.deltava.servlet.DownloadServlet
getFileTypeMethods inherited from class org.deltava.servlet.BasicAuthServlet
authenticate, challengeMethods inherited from class org.deltava.servlet.GenericServlet
getURLMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Constructor Details
-
AttachmentServlet
public AttachmentServlet()
-
-
Method Details
-
getServletInfo
Returns the servlet description.- Specified by:
getServletInfoin interfaceServlet- Overrides:
getServletInfoin classGenericServlet- Returns:
- name, author and copyright info for this servlet
-
doGet
Processes HTTP GET requests for attachments.- Overrides:
doGetin classHttpServlet- Parameters:
req- the HTTP requestrsp- the HTTP response- Throws:
IOException- if a network I/O error occurs
-