|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.XMLOutputEvent
public final class XMLOutputEvent
Is a stop and output Event sending an XML response.
This Event is useful for AJAX communication.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.event.Event |
|---|
Event.Disposition |
| Method Summary | |
|---|---|
static XMLOutputEvent |
fromJAXBObject(java.lang.Object object)
Creates a new XMLOutputEvent for the given JAXB enabled
Object. |
static XMLOutputEvent |
fromJDOMDocument(org.jdom.Document document)
Creates a new XMLOutputEvent for the given Document. |
static XMLOutputEvent |
fromJDOMElement(org.jdom.Element element)
Creates a new XMLOutputEvent for the given Element. |
CacheMode |
getCacheMode()
returns the CacheMode. |
boolean |
isOutputEvent()
Returns true. |
boolean |
isSingularEvent()
Indicates that the Event will only be added once to the
EventManager and block all other Events. |
boolean |
isStopEvent()
Returns true. |
void |
run(ServiceRequest request)
Sends the XML response. |
void |
setCacheMode(CacheMode c)
sets the CacheMode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XMLOutputEvent fromJDOMDocument(org.jdom.Document document)
XMLOutputEvent for the given Document.
document - the Document for the output.
XMLOutputEventpublic static XMLOutputEvent fromJDOMElement(org.jdom.Element element)
XMLOutputEvent for the given Element.
element - the Element for the output.
XMLOutputEventpublic static XMLOutputEvent fromJAXBObject(java.lang.Object object)
XMLOutputEvent for the given JAXB enabled
Object.
object - the JAXB enabled Object for the output.
XMLOutputEventpublic void run(ServiceRequest request)
run in interface Eventrequest - the current ServiceRequest.Event.run(org.torweg.pulse.service.request.ServiceRequest)public boolean isStopEvent()
true.
isStopEvent in interface Eventtrue.Event.isStopEvent()public boolean isOutputEvent()
true.
isOutputEvent in interface Eventtrue.Event.isOutputEvent()public boolean isSingularEvent()
EventEvent will only be added once to the
EventManager and block all other Events.
If an Event of the same type has already been added to the
EventManager, subsequent calls to
EventManager.addEvent(Event) will return without adding the given
Event.
isSingularEvent in interface EventtrueEvent.isSingularEvent()public CacheMode getCacheMode()
CacheMode.
getCacheMode in interface EventEvent.getCacheMode()public void setCacheMode(CacheMode c)
CacheMode.
setCacheMode in interface Eventc - the cache mode to setEvent.setCacheMode(org.torweg.pulse.service.request.CacheMode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||