|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ActionFilter implementation is used by ActionController. It intercepts all actions, so filter will be called before and after the action invokation.
Filter also may chnage the default behaviour of the mapped action. Therefore, it may be used for managing security access in the application etc.
Method Summary | |
java.lang.String |
onAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet action)
Called BEFORE some action is invoked. |
java.lang.String |
onAfterAction(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionServlet action,
java.lang.String actionResult)
Called AFTER some action is invoked. |
Method Detail |
public java.lang.String onAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionServlet action)
null
for letting the
Controller to invoke the mapped action or it may return a forward instead of action.
request
- http requestresponse
- http responseaction
- action class that is going to be invoked
public java.lang.String onAfterAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionServlet action, java.lang.String actionResult)
null
for letting the
Controller to process the returned results of the action or it may return a
forward string that will be override returned results.
request
- http requestresponse
- http responseaction
- action class that is going to be invokedactionResult
- result of invoked method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |