Class WebServiceServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class WebServiceServlet extends BasicAuthServlet
A servlet to handle Web Service data requests.
Since:
1.0
Version:
12.3
Author:
Luke
See Also:
  • Constructor Details

    • WebServiceServlet

      public WebServiceServlet()
  • Method Details

    • getServletInfo

      public String getServletInfo()
      Returns the servlet description.
      Specified by:
      getServletInfo in interface jakarta.servlet.Servlet
      Overrides:
      getServletInfo in class jakarta.servlet.GenericServlet
      Returns:
      name, author and copyright info for this servlet
    • init

      public void init() throws jakarta.servlet.ServletException
      Initializes the servlet. This loads the service map.
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException - if an error occurs
      See Also:
    • destroy

      public void destroy()
      Shuts down the servlet. This just logs a message to the servlet log.
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet
    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws jakarta.servlet.ServletException, IOException
      Processes HTTP GET requests for web services.
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - the HTTP request
      rsp - the HTTP response
      Throws:
      IOException - if a network I/O error occurs
      jakarta.servlet.ServletException
    • doPost

      public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws jakarta.servlet.ServletException, IOException
      Processes HTTP POST requests for web services. This redirects to the GET handler.
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - the HTTP request
      rsp - the HTTP response
      Throws:
      IOException - if a network I/O error occurs
      jakarta.servlet.ServletException
      See Also: