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 cometdContext router is channel based, with rules based on longest-prefix match dispatching for registered listeners. The "/meta/*" channel is reserved for communications with the cometdContext 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(BayeuxParser bayeuxParser)
           
 
Method Summary
 void route(CometdRequest req, CometdResponse res)
          Route a CometD message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRouterImpl

public EventRouterImpl(BayeuxParser bayeuxParser)
Method Detail

route

public void route(CometdRequest req,
                  CometdResponse res)
           throws IOException
Route a CometD message.

Specified by:
route in interface EventRouter
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.