com.sun.grizzly.cometd
Class EventRouterImpl
java.lang.Object
com.sun.grizzly.cometd.EventRouterImpl
- All Implemented Interfaces:
- EventRouter
public class EventRouterImpl
- extends Object
- implements EventRouter
From the Spec, an EventRouter is:
The event router is channel based, with rules based on longest-prefix match
dispatching for registered listeners. The "/meta/*" channel is reserved for
communications with the event router itself (including connection setup,
tear-down, and re-connection), and all conformant clients and servers must
implement the following meta-channel verbs:
* handshake
* connect
* reconnect
* disconnect
* status
* subscribe
* unsubscribe
* ping
- Author:
- Jeanfrancois Arcand, TAKAI, Naoto
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventRouterImpl
public EventRouterImpl(CometContext cometContext)
route
public void route(CometdRequest req,
CometdResponse res)
throws IOException
- Route a CometD message.
- Specified by:
route
in interface EventRouter
- Throws:
IOException
getCometContext
public CometContext getCometContext()
setCometContext
public void setCometContext(CometContext cometContext)
Copyright © 2010 SUN Microsystems. All Rights Reserved.