|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.DirectOutputEvent
public class DirectOutputEvent
is an Event that causes the pulse service to provide
instance output committing the underlying HttpServletResponse.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.event.Event |
|---|
Event.Disposition |
| Constructor Summary | |
|---|---|
DirectOutputEvent(Event event, ServiceRequest req)
create a new DirectOutputEvent for the specified Event. |
|
| 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)
will return immediately as the output is already produced at construction time. |
void |
setCacheMode(CacheMode c)
throws an UnsupportedOperationException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectOutputEvent(Event event, ServiceRequest req)
DirectOutputEvent for the specified Event.
event - the event to be processed directlyreq - the current ServiceRequest
java.lang.IllegalArgumentException - if the given Event is not an output event| Method Detail |
|---|
public final void run(ServiceRequest req)
run in interface Eventreq - the ServiceRequest which is ignoredEvent.run(org.torweg.pulse.service.request.ServiceRequest)public final boolean isStopEvent()
EventInvoker should proceed executing other
bundles or if it should terminate after executing this Event
.
isStopEvent in interface Eventtrue, if the event is a stop eventEvent.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 Eventtrue, if the event is singularEvent.isSingularEvent()public final CacheMode getCacheMode()
CacheMode.
getCacheMode in interface EventEvent.getCacheMode()public final void setCacheMode(CacheMode c)
UnsupportedOperationException.
setCacheMode in interface Eventc - is ignored
java.lang.UnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||