|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.event.DefaultBaseEventListener
This class provides the default implementation for a BaseEventListener. This is an abstract class, meaning you have to extend it if you intend to use it. Typically you would implement it as an inner class and extend handleReqEvent, handleRespEvent, or handleOtherEvent. Or, you can always just override handleEvent and do whatever you want.
Field Summary | |
protected String |
idStr
|
protected static org.apache.log4j.Logger |
localLogger
|
Constructor Summary | |
DefaultBaseEventListener()
|
Method Summary | |
String |
getListenerID()
Get the ID that identifies this listener. |
void |
handleControlEvent(ControlEventContext context)
Handle HttpRequestEvents |
void |
handleEvent(EventContext context)
Handle all events. |
void |
handleOtherEvent(EventContext context)
Handle all Other events |
void |
handleViewEvent(ViewEventContext context)
Handle HttpResponseEvents |
boolean |
isHandled()
Return true if the event was handled in the handleEvent method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger localLogger
protected String idStr
Constructor Detail |
public DefaultBaseEventListener()
Method Detail |
public void handleEvent(EventContext context) throws EventException
handleEvent
in interface BaseEventListener
context
- the EventContext for the base event we are handling
EventException
public void handleControlEvent(ControlEventContext context) throws EventException, javax.servlet.ServletException, IOException
context
- the ControlEventContext
EventException
javax.servlet.ServletException
IOException
public void handleViewEvent(ViewEventContext context) throws EventException, javax.servlet.ServletException, IOException
context
- the ViewEventContext
EventException
javax.servlet.ServletException
IOException
public void handleOtherEvent(EventContext context) throws EventException
context
- the EventContext
EventException
public boolean isHandled()
isHandled
in interface BaseEventListener
public String getListenerID()
getListenerID
in interface BaseEventListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |