Package com.jk.web.servlets
Class JKVersionsServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.jk.web.servlets.JKVersionsServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class JKVersionsServlet
extends jakarta.servlet.http.HttpServlet
This class is a servlet responsible for displaying information about
application versions.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) This method handles GET requests for displaying application version information.void
init
(jakarta.servlet.ServletConfig config) This method initializes the servlet configuration and logs initialization.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
JKVersionsServlet
public JKVersionsServlet()This method constructs a newJKVersionsServlet
.
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException This method initializes the servlet configuration and logs initialization.- Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.servlet.http.HttpServlet
- Parameters:
config
- Specifies the servlet configuration.- Throws:
jakarta.servlet.ServletException
- if a servlet exception occurs during initialization.
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException This method handles GET requests for displaying application version information.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Parameters:
request
- Specifies the HttpServletRequest for the version request.response
- Specifies the HttpServletResponse for the version response.- Throws:
jakarta.servlet.ServletException
- if a servlet exception occurs.IOException
- if an I/O exception has occurred.
-