Class WebServiceTesterServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class WebServiceTesterServlet
    extends jakarta.servlet.http.HttpServlet
    This servlet is responsible for testing web-services.
    Author:
    Jerome Dochez
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static boolean checkValidDnsName​(String decodedServerName)  
      protected static boolean checkValidIpv4DottedDecimal​(String decodedServerName)  
      void doGet​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)  
      void doPost​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)  
      static void invoke​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, WebServiceEndpoint endpoint)  
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • WebServiceTesterServlet

        public WebServiceTesterServlet​(WebServiceEndpoint ep)
        Creates a new instance of WebServiceTesterServlet
        Parameters:
        ep - endpoint to monitor
    • Method Detail

      • invoke

        public static void invoke​(jakarta.servlet.http.HttpServletRequest request,
                                  jakarta.servlet.http.HttpServletResponse response,
                                  WebServiceEndpoint endpoint)
      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest req,
                          jakarta.servlet.http.HttpServletResponse res)
                   throws jakarta.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • doPost

        public void doPost​(jakarta.servlet.http.HttpServletRequest req,
                           jakarta.servlet.http.HttpServletResponse res)
                    throws jakarta.servlet.ServletException,
                           IOException
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • checkValidIpv4DottedDecimal

        protected static boolean checkValidIpv4DottedDecimal​(String decodedServerName)
      • checkValidDnsName

        protected static boolean checkValidDnsName​(String decodedServerName)