|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.maf.action.ActionMappings
public final class ActionMappings
Configuration of the Framework. This class contains all mappings the framework will react on.
| Constructor Summary | |
|---|---|
ActionMappings()
|
|
| Method Summary | |
|---|---|
void |
addAlias(String sourcePath,
String targetPath)
Adds an alias. |
void |
addForward(String actionPath,
String forwardPath)
|
void |
addMapping(String path,
Class<? extends Action> type,
ActionCommand... commands)
Adds a mapping. |
void |
addMapping(String path,
Class<? extends Action> type,
ActionForward... forwards)
Adds an 1.0 style mapping. |
void |
addMapping(String path,
String type,
ActionCommand... commands)
Adds a mapping. |
void |
addMapping(String path,
String type,
ActionForward... forwards)
Adds a mapping. |
ActionMapping |
findMapping(String actionPath)
|
Map<String,String> |
getAliases()
|
Map<String,ActionMapping> |
getMappings()
|
ActionCommand |
getOnError()
|
ActionCommand |
getOnNotFound()
|
void |
setOnError(ActionCommand onError)
|
void |
setOnNotFound(ActionCommand onNotFound)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionMappings()
| Method Detail |
|---|
public void addMapping(String path,
String type,
ActionCommand... commands)
path - type - commands -
public void addMapping(String path,
String type,
ActionForward... forwards)
path - type - forwards -
public void addForward(String actionPath,
String forwardPath)
public void addMapping(String path,
Class<? extends Action> type,
ActionCommand... commands)
path - type - commands -
public void addMapping(String path,
Class<? extends Action> type,
ActionForward... forwards)
path - type - forwards -
public void addAlias(String sourcePath,
String targetPath)
sourcePath - targetPath - public ActionMapping findMapping(String actionPath)
public Map<String,String> getAliases()
public Map<String,ActionMapping> getMappings()
public ActionCommand getOnError()
public void setOnError(ActionCommand onError)
public ActionCommand getOnNotFound()
public void setOnNotFound(ActionCommand onNotFound)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||