org.barracudamvc.core.event
Class HttpResponseEvent

java.lang.Object
  extended by org.barracudamvc.core.event.DefaultBaseEvent
      extended by org.barracudamvc.core.event.ViewEvent
          extended by org.barracudamvc.core.event.HttpResponseEvent
All Implemented Interfaces:
Cloneable, BaseEvent, Exceptional, StateMap
Direct Known Subclasses:
RenderLongRunningEvent, RenderPage

public class HttpResponseEvent
extends ViewEvent
implements Exceptional

A HttpResponseEvent indicates that we received an HTTP Response. Events which extend this class typically generate the View portion the Model 2 approach


Field Summary
 
Fields inherited from class org.barracudamvc.core.event.DefaultBaseEvent
ext, handled, idList, params, source, sourceEvent, statemap, timestamp, USE_ID_ALIASES, useIDAliases
 
Fields inherited from interface org.barracudamvc.core.event.BaseEvent
EVENT_ID
 
Constructor Summary
HttpResponseEvent()
          Default noargs constructor
HttpResponseEvent(Object source)
          Public constructor.
HttpResponseEvent(String urlParamStr)
          Public constructor.
 
Method Summary
 String describeEventChainingStrategy()
          Describe the event chaining stategy.
 
Methods inherited from class org.barracudamvc.core.event.DefaultBaseEvent
addListenerID, clearState, clone, equals, getClassID, getEventExtension, getEventID, getEventIDWithExtension, getEventURL, getListenerIDs, getOriginalEvent, getParams, getRootEvent, getRootEvent, getSource, getState, getStateKeys, getStateStore, getTimestamp, isHandled, putState, removeState, reset, setEventExtension, setHandled, setParam, setParam, setSource, setUseIDAliases, touch, useIDAliases
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseEvent

public HttpResponseEvent()
Default noargs constructor


HttpResponseEvent

public HttpResponseEvent(String urlParamStr)
Public constructor. Automatically sets parameters associated with the event with a URL string of the form "key1=val1&key2=val2&..." (the param str may be prefixed by a '?')


HttpResponseEvent

public HttpResponseEvent(Object source)
Public constructor. Automatically sets the source parameter. If you do not use this method you should manually set the source before dispatching the event.

Method Detail

describeEventChainingStrategy

public String describeEventChainingStrategy()
Describe the event chaining stategy. This method really serves to ensure that objects cannot implement BOTH Polymorphic and Exceptional (it's got to be one or the other)

Specified by:
describeEventChainingStrategy in interface Exceptional
Returns:
string describing the event chain strategy


Copyright © 2006 BarracudaMVC.org All Rights Reserved.