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
    Constructor
    Description
    This method constructs a new JKVersionsServlet.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JKVersionsServlet

      public JKVersionsServlet()
      This method constructs a new JKVersionsServlet.
  • 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 interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.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 class jakarta.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.