|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
echopoint.ExternalEventMonitor
public class ExternalEventMonitor
A ExternalEventMonitor
can be used to monitor
external events that come in via web request URIs.
ExternalEventMonitor
will inform
all attached ExternalEventListener
s about
those web request events.
ExternalEventMonitor
looks for web application
requests with the special marker "E_id=ExternalEvent". This
allows other web pages (especially non Echo based ones) to link
to the Echo web application via an URI, say something like :
/servletcontext/servlet?E_id=ExternalEvent&p1=v1&p2=v2..
The parameters of the web request are packaged into a Map and
placed within the ExternalEvent
object.
ExternalEventMonitor
is a non visual component.
ExternalEvent
,
ExternalEventListener
,
Serialized FormField Summary |
---|
Constructor Summary | |
---|---|
ExternalEventMonitor()
Constructs an ExternalEventMonitor |
Method Summary | |
---|---|
void |
addExternalEventListener(ExternalEventListener l)
Adds an ExternalEventListener to the ExternalEventMonitor |
void |
fireExternalEvent(ExternalEvent externalEvent)
This is called by the support code to inform all ExternalEventListeners that an external event has ocurred. |
void |
removeExternalEventListener(ExternalEventListener l)
Removes an ExternalEventListener from the ExternalEventMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExternalEventMonitor()
ExternalEventMonitor
Method Detail |
---|
public void addExternalEventListener(ExternalEventListener l)
ExternalEventListener
to the ExternalEventMonitor
l
- the ExternalEventListener to addpublic void removeExternalEventListener(ExternalEventListener l)
ExternalEventListener
from the ExternalEventMonitor
l
- the ExternalEventListener to removepublic void fireExternalEvent(ExternalEvent externalEvent)
externalEvent
- - the new ExternalEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |