|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.commons.ControllerHandler
public abstract class ControllerHandler
This is an abstraction of the filter mechanism. It emulates the behaviour of a filter so that different handlers can be defined which perform specific operations, without having to create real filters.
Constructor Summary | |
---|---|
ControllerHandler()
|
Method Summary | |
---|---|
void |
afterBeforeFilter(ServletRequest request,
ServletResponse response,
FilterConfig conf)
Performs an operation before the doFilterChain() method is called, but after all beforeFilter(ServletRequest, ServletResponse, FilterConfig, ServletObjects) methods of all controller
handlers registered in ControllerFilter have been called |
void |
afterFilter(ServletRequest request,
ServletResponse response,
FilterConfig conf)
Performs an operation after the doFilterChain() method is called |
boolean |
beforeFilter(ServletRequest request,
ServletResponse response,
FilterConfig conf,
ServletObjects httpServletObjects)
Performs an operation before the doFilterChain() method is called |
void |
finalize(ServletRequest request,
ServletResponse response)
Performs cleanup operations after the filter operation is executed |
boolean |
onError(ServletRequest request,
ServletResponse response,
Throwable e,
FilterConfig conf)
Performs an operation when an error occurs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerHandler()
Method Detail |
---|
public boolean beforeFilter(ServletRequest request, ServletResponse response, FilterConfig conf, ServletObjects httpServletObjects) throws Exception
true
if the operation worked out successfully, false
otherwise
Exception
public void afterBeforeFilter(ServletRequest request, ServletResponse response, FilterConfig conf) throws Exception
beforeFilter(ServletRequest, ServletResponse, FilterConfig, ServletObjects)
methods of all controller
handlers registered in ControllerFilter
have been called
Exception
public void afterFilter(ServletRequest request, ServletResponse response, FilterConfig conf)
public boolean onError(ServletRequest request, ServletResponse response, Throwable e, FilterConfig conf)
true
if this still is an error, false
if it was handledpublic void finalize(ServletRequest request, ServletResponse response)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |