|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.RedirectSafelyEvent
public class RedirectSafelyEvent
A RedirectSafelyEvent is an output and stop Event that
redirects the user (302 Moved Temporarily) to the location closest to
the current Command's location.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.event.Event |
|---|
Event.Disposition |
| Constructor Summary | |
|---|---|
RedirectSafelyEvent()
|
|
| Method Summary | |
|---|---|
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)
tries to redirect the user to a location close to the location specified by the current command. |
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 |
| Constructor Detail |
|---|
public RedirectSafelyEvent()
| Method Detail |
|---|
public final void run(ServiceRequest request)
run in interface Eventrequest - the current RequestEvent.run(org.torweg.pulse.service.request.ServiceRequest)public final boolean isOutputEvent()
true.
isOutputEvent in interface EventtrueEvent.isOutputEvent()public final boolean isStopEvent()
true.
isStopEvent in interface EventtrueEvent.isStopEvent()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 | |||||||||