|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.XSLTOutputEvent
public class XSLTOutputEvent
is a stop and output Event sending a XSLT 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 |
| Constructor Summary | |
|---|---|
XSLTOutputEvent(XSLHandle xslTemplate)
builds a new XSLTOutputEvent with the given XSLHandle. |
|
XSLTOutputEvent(XSLHandle xslTemplate, CacheMode cacheMode)
builds a new XSLTOutputEvent with the given XSLHandle and
CacheMode. |
|
| Method Summary | |
|---|---|
CacheMode |
getCacheMode()
returns the CacheMode. |
boolean |
isOutputEvent()
Indicates if this Event will write to the
OutputStream and so render the OutputStream
unwritable for future results. |
boolean |
isSingularEvent()
Indicates that the Event will only be added once to the
EventManager and block all other Events. |
boolean |
isStopEvent()
Indicates if the Invoker should proceed executing other
bundles or if it should terminate after executing this Event
. |
void |
run(ServiceRequest req)
sends the XSLT response. |
void |
setCacheMode(CacheMode c)
sets the CacheMode. |
void |
setResultSet(ResultSet rs)
set the ResultSet that shall be used as a base for the XSL
transformation. |
XSLTOutputEvent |
setStopEvent(boolean flag)
sets the stop event flag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTOutputEvent(XSLHandle xslTemplate)
XSLTOutputEvent with the given XSLHandle.
xslTemplate - the XSL document to be usedpublic XSLTOutputEvent(XSLHandle xslTemplate, CacheMode cacheMode)
XSLTOutputEvent with the given XSLHandle and
CacheMode.
xslTemplate - the XSL document to be usedcacheMode - the cache mode to be used| Method Detail |
|---|
public final void run(ServiceRequest req)
run in interface Eventreq - the current ServiceRequestEvent.run(org.torweg.pulse.service.request.ServiceRequest)public final XSLTOutputEvent setStopEvent(boolean flag)
If set to true, the OutputEvent is a StopEvent.
flag - the flag to be set
public final void setResultSet(ResultSet rs)
ResultSet that shall be used as a base for the XSL
transformation.
setResultSet in interface ResultAwareEventrs - the ResultSet to be usedpublic final boolean isStopEvent()
EventInvoker should proceed executing other
bundles or if it should terminate after executing this Event
.
isStopEvent in interface EventtrueEvent.isStopEvent()public final boolean isOutputEvent()
EventEvent will write to the
OutputStream and so render the OutputStream
unwritable for future results.
Please note: After writing to the OutputStream it should be
flushed and closed.
isOutputEvent in interface EventtrueEvent.isOutputEvent()public final 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 final CacheMode getCacheMode()
CacheMode.
getCacheMode in interface EventEvent.getCacheMode()public final 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 | |||||||||