|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.servlet.ActionControllerUtil
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 |
public static final java.lang.String defaultConfigFile
Constructor Detail |
public ActionControllerUtil()
Method Detail |
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
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.
dest
- target hashmapglobal_forwards
- target global forwards ActionDatafilePath
- 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.
javax.servlet.ServletException
public static void addForward(jodd.servlet.ActionData acd, org.w3c.dom.Node forward_node)
acd
- forward_node
- public static void addParameter(jodd.servlet.ActionData acd, org.w3c.dom.Node parameter_node)
acd
- parameter_node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |