Class BaseActionHandler

    • Constructor Detail

      • BaseActionHandler

        public BaseActionHandler()
    • Method Detail

      • fixRequestMap

        protected Map<String,​String> fixRequestMap​(Map<String,​Object> parameters,
                                                         org.codehaus.jettison.json.JSONObject context)
        Fixes the request map adding an "context" key to include context info in order to make it available to be evaluated by FilterExpression
      • execute

        protected abstract org.codehaus.jettison.json.JSONObject execute​(Map<String,​Object> parameters,
                                                                         String content)
        Needs to be implemented by a subclass.
        Parameters:
        parameters - the parameters obtained from the request. Note that the request object and the session object are also present in this map, resp. as the constants KernelConstants.HTTP_REQUEST and KernelConstants.HTTP_SESSION.
        content - the request content (if any)
        Returns:
        the return should be a JSONObject, this is passed back to the caller on the client.