Class SignatureServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.SignatureServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
The Signature Image serving Servlet. This serves Water Cooler signature images.
- Since:
- 2.6
- 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 TypeMethodDescriptionvoid
doGet
(HttpServletRequest req, HttpServletResponse rsp) Processes HTTP GET requests for images.long
Returns the last modification date of a signature image.Returns the servlet description.Methods inherited from class org.deltava.servlet.GenericServlet
getURL
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Constructor Details
-
SignatureServlet
public SignatureServlet()
-
-
Method Details
-
getServletInfo
Returns the servlet description.- Specified by:
getServletInfo
in interfaceServlet
- Overrides:
getServletInfo
in classGenericServlet
- Returns:
- name, author and copyright info for this servlet
-
getLastModified
Returns the last modification date of a signature image.- Overrides:
getLastModified
in classHttpServlet
- Parameters:
req
- the HTTP request- Returns:
- the last modification date/time as a Unix timestamp, or -1 if unknown
-
doGet
Processes HTTP GET requests for images.- Overrides:
doGet
in classHttpServlet
- Parameters:
req
- the HTTP requestrsp
- the HTTP response- Throws:
IOException
- if a network I/O error occurs
-