Package com.jk.web.servlets
Class JKResetConfigServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.jk.web.servlets.JKResetConfigServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class JKResetConfigServlet
extends jakarta.servlet.http.HttpServlet
This class is a servlet responsible for resetting configuration settings.
- 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 resetting application configuration.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
-
JKResetConfigServlet
public JKResetConfigServlet()This method constructs a newJKResetConfigServlet
.
-
-
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 resetting application configuration.- Overrides:
doGet
in classjakarta.servlet.http.HttpServlet
- Parameters:
request
- Specifies the HttpServletRequest for the reset request.response
- Specifies the HttpServletResponse for the reset response.- Throws:
jakarta.servlet.ServletException
- if a servlet exception occurs.IOException
- if an I/O exception has occurred.
-