|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.action.ActionConfig
public class ActionConfig
This is the root class for the japano action mapping configuration which is created and updated by the metadata processor. The configuration is persisted under /WEB-INF/japano-actionMap.ser.
Field Summary | |
---|---|
static java.lang.String |
ACTIONCOUNT_PARAMETER_NAME
name of the action count parameter |
static java.lang.String |
FILENAME
file name of the actionMap file |
static java.lang.String |
SHOWVIEW_URI
|
Constructor Summary | |
---|---|
ActionConfig()
|
Method Summary | |
---|---|
void |
addAction(ActionMapping action)
Adds the given ActionConfig to this ActionMap. |
Action |
createAction(java.lang.String qName)
Creates the action instance mapped to the given qualified name. |
ActionMapping |
getActionFromTag(java.lang.String library,
java.lang.String name)
Returns the ActionConfig instance of the action which is linked to the given tag in the given library. |
ActionMapping |
getActionMapping(java.lang.String qName)
Returns the action mapping for the given qualified name. |
ActionMapping |
getActionMappingForURI(java.lang.String uri)
Returns the action which is mapped to the URI or null . |
java.lang.String |
getQualifiedName(java.lang.Class actionClass)
Returns the qualified name the action class is mapped to. |
static ActionConfig |
read(java.lang.String path)
Reads an ActionMap from the given path. |
void |
redirectTo(javax.servlet.http.HttpServletResponse response,
java.lang.Class actionClass)
Sends a redirect to the given action. |
int |
size()
Returns the number of actions configured in this ActionMap. |
java.lang.String |
toString()
|
void |
write(java.lang.String path)
Writes this ActionMap to the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SHOWVIEW_URI
public static final java.lang.String ACTIONCOUNT_PARAMETER_NAME
public static final java.lang.String FILENAME
Constructor Detail |
---|
public ActionConfig()
Method Detail |
---|
public ActionMapping getActionFromTag(java.lang.String library, java.lang.String name)
library
- URI of the libraryname
- of the tag
null
public void addAction(ActionMapping action)
action
- ActionConfigpublic ActionMapping getActionMappingForURI(java.lang.String uri)
null
.
uri
- URI
public java.lang.String toString()
toString
in class java.lang.Object
public Action createAction(java.lang.String qName)
qName
- qualified name
public static ActionConfig read(java.lang.String path)
path
- full path of a .ser file
public void write(java.lang.String path)
path
- full path of a .ser filepublic int size()
public java.lang.String getQualifiedName(java.lang.Class actionClass)
actionClass
- action class to get the qualified name for
public void redirectTo(javax.servlet.http.HttpServletResponse response, java.lang.Class actionClass) throws java.io.IOException
response
- HttpServletResponse to send redirect with.actionClass
- Class of the action to be redirected to. Must implement Action
java.io.IOException
public ActionMapping getActionMapping(java.lang.String qName)
qName
- qualified name
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |