|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.taggercat.handlers.AbstractRequestHandler
com.taggercat.handlers.MultiActionNameRequestHandler
public abstract class MultiActionNameRequestHandler
This is a request handler to process requests that match multiple named actions and where each action name corresponds to a separate method within this handler. Whereas, with regular handlers, only a single action name typically supported.
The corresponding action method must also meet the following criteria:annotated with @ActionMethod, it also must meet the following criteria:
Whereas, with a direct subclass of the AbstractRequestHandler you'd need to typically with an if-then-else block on the current action name.
Actions,
URIAction
![]() |
![]() |
| Constructor Summary | |
|---|---|
MultiActionNameRequestHandler()
|
|
| Method Summary | |
|---|---|
boolean |
isUserInPermittedActionRole(java.util.List<java.lang.String> actionRoles)
Checks if the current request's user has access permission to the handler. |
boolean |
isValidRequestMethod(javax.servlet.http.HttpServletRequest request,
java.lang.Boolean validOnPosts,
java.lang.Boolean validOnGets)
Request handlers can optionally specify that they are accepted on POST, and or GET request methods. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiActionNameRequestHandler()
| Method Detail |
|---|
public boolean isUserInPermittedActionRole(java.util.List<java.lang.String> actionRoles)
actionRoles - the list of roles (groups) this action method is valid for
public boolean isValidRequestMethod(javax.servlet.http.HttpServletRequest request,
java.lang.Boolean validOnPosts,
java.lang.Boolean validOnGets)
request - the current requestvalidOnPosts - set true of this is valid on POST requestsvalidOnGets - set true of this is valid on GET requests
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||