public class ActionDispatcher extends Object
ATTENTION: This class is NOT thread-safe
| Constructor and Description |
|---|
ActionDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearActions()
Removes all registered actions.
|
Action |
getAction(javax.servlet.http.HttpServletRequest req)
Return the action associated with given request
|
void |
registerAction(Action action,
HttpMethod httpMethod,
String url)
Registers an action with given URL
|
public static final String ROOT_PATH
public void registerAction(Action action, HttpMethod httpMethod, String url)
action - action to be associated with given URL and HTTP methodhttpMethod - associated HTTP methodurl - URL associated with given action and HTTP methodpublic void clearActions()
public Action getAction(javax.servlet.http.HttpServletRequest req)
req - HTTP requestCopyright © 2016 Agapsys Tecnologia Ltda-ME. All rights reserved.