Class SOAPMonitorService

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

    public class SOAPMonitorService
    extends javax.servlet.http.HttpServlet
    This is a SOAP Monitor Service class.

    During the HTTP server startup, the servlet init method is invoked. This allows the code to open a server socket that will be used to communicate with running applets.

    When an HTTP GET request is received, the servlet dynamically produces an HTML document to load the SOAP monitor applet and supply the port number being used by the server socket (so the applet will know how to connect back to the server).

    Each time a socket connection is established, a new thread is created to handle communications from the applet.

    The publishMethod routine is invoked by the SOAP monitor handler when a SOAP message request or response is detected. The information about the SOAP message is then forwared to all current socket connections for display by the applet.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Servlet termination
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      HTTP GET request
      void init()
      Servlet initialiation
      static void publishMessage​(Long id, Integer type, String target, String soap)
      Publish a SOAP message to listeners
      • Methods inherited from class javax.servlet.http.HttpServlet

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

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

      • SOAPMonitorService

        public SOAPMonitorService()
        Constructor
    • Method Detail

      • publishMessage

        public static void publishMessage​(Long id,
                                          Integer type,
                                          String target,
                                          String soap)
        Publish a SOAP message to listeners
      • init

        public void init()
                  throws javax.servlet.ServletException
        Servlet initialiation
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Servlet termination
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException,
                          javax.servlet.ServletException
        HTTP GET request
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException