jodd.servlet
Class ActionControllerUtil

java.lang.Object
  extended byjodd.servlet.ActionControllerUtil

public class ActionControllerUtil
extends java.lang.Object

ActionController helper class.


Field Summary
static java.lang.String defaultConfigFile
          Default relative address of main configuration xml file that defines actions.
 
Constructor Summary
ActionControllerUtil()
           
 
Method Summary
static void addForward(jodd.servlet.ActionData acd, org.w3c.dom.Node forward_node)
          Adds forward information into the ActionDate object, from a XML node.
static void addParameter(jodd.servlet.ActionData acd, org.w3c.dom.Node parameter_node)
          Adds parameter information into the ActionDate object, from a XML node.
static void parseFile(java.util.HashMap dest, jodd.servlet.ActionData global_forwards, java.lang.String filePath, java.lang.String fileName)
          Parses actions configuration xml file and loads a hashmap with processed data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultConfigFile

public static final java.lang.String defaultConfigFile
Default relative address of main configuration xml file that defines actions.

See Also:
Constant Field Values
Constructor Detail

ActionControllerUtil

public ActionControllerUtil()
Method Detail

parseFile

public static void parseFile(java.util.HashMap dest,
                             jodd.servlet.ActionData global_forwards,
                             java.lang.String filePath,
                             java.lang.String fileName)
                      throws javax.servlet.ServletException
Parses actions configuration xml file and loads a hashmap with processed data. Target HashMap will be used by ActionController for redirecting the requests.

This method is recursive, i.e. configuration file may contains imports of other configuration files. This may be used to split one big configuration file to many shorter ones. The result will be the same.

Parameters:
dest - target hashmap
global_forwards - target global forwards ActionData
filePath - local root-path of the folder that contains all config files. usually it is the local path of the application web folder.
fileName - relative path to the exact actions xml configuration file.
Throws:
javax.servlet.ServletException

addForward

public static void addForward(jodd.servlet.ActionData acd,
                              org.w3c.dom.Node forward_node)
Adds forward information into the ActionDate object, from a XML node.

Parameters:
acd -
forward_node -

addParameter

public static void addParameter(jodd.servlet.ActionData acd,
                                org.w3c.dom.Node parameter_node)
Adds parameter information into the ActionDate object, from a XML node.

Parameters:
acd -
parameter_node -


Jodd v0.24.5 Javadoc