com.sun.grizzly.cometd
Class EventRouterImpl

java.lang.Object
  extended by 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

Constructor Summary
EventRouterImpl(CometContext cometContext)
           
 
Method Summary
 CometContext getCometContext()
           
 void route(CometdRequest req, CometdResponse res)
          Route a CometD message.
 void setCometContext(CometContext cometContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRouterImpl

public EventRouterImpl(CometContext cometContext)
Method Detail

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 © 2009 SUN Microsystems. All Rights Reserved.