Class ImageServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.BasicAuthServlet
org.deltava.servlet.DownloadServlet
org.deltava.servlet.ImageServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
The Image serving Servlet. This serves all database-contained images.
- Since:
- 1.0
- Version:
- 12.1
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class GenericServlet
GenericServlet.ForbiddenException, GenericServlet.NotFoundException, GenericServlet.ServletSecurityContextModifier and TypeClassDescriptionprotected final classController exception to handle 403s.protected final classController exception to handle 404s.protected classSecurity Context for use within servlets. -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Methods inherited from class DownloadServlet
getFileTypeModifier and TypeMethodDescriptionprotected static FileTypegetFileType(URLParser up, FileType[] values) A helper method to get the file type from the URL.Methods inherited from class BasicAuthServlet
authenticate, challengeModifier and TypeMethodDescriptionprotected static Pilotauthenticate(jakarta.servlet.http.HttpServletRequest req) Authenticates the current web user.protected static voidSets the response headers for a basic authentication challenge.Methods inherited from class GenericServlet
getURLMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Constructor Details
-
ImageServlet
public ImageServlet()
-
-
Method Details
-
getServletInfo
- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
IOException
-