Interface EventHandler

    • Method Detail

      • init

        void init​(javax.servlet.ServletContext context)
           throws EventHandlerException
        Initializes the handler. Since handlers use the singleton pattern this method should only be called the first time the handler is used.
        Parameters:
        context - ServletContext This may be needed by the handler in order to lookup properties or XML definition files for rendering pages or handler options.
        Throws:
        EventHandlerException
      • invoke

        java.lang.String invoke​(ConfigXMLReader.Event event,
                                ConfigXMLReader.RequestMap requestMap,
                                javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws EventHandlerException
        Invoke the web event
        Parameters:
        event - Contains information about what to execute
        requestMap - Contains information about the request-map the event was called from
        request - The servlet request object
        response - The servlet response object
        Returns:
        String Result code
        Throws:
        EventHandlerException