org.cometd.examples
Class ChatService

java.lang.Object
  extended by org.cometd.examples.ChatService

@Service(value="chat")
public class ChatService
extends Object


Constructor Summary
ChatService()
           
 
Method Summary
protected  void configureChatStarStar(org.cometd.bayeux.server.ConfigurableServerChannel channel)
           
protected  void configureMembers(org.cometd.bayeux.server.ConfigurableServerChannel channel)
           
protected  void configurePrivateChat(org.cometd.bayeux.server.ConfigurableServerChannel channel)
           
 void handleMembership(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)
           
protected  void privateChat(org.cometd.bayeux.server.ServerSession client, org.cometd.bayeux.server.ServerMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatService

public ChatService()
Method Detail

configureChatStarStar

@Configure(value={"/chat/**","/members/**"})
protected void configureChatStarStar(org.cometd.bayeux.server.ConfigurableServerChannel channel)

configureMembers

@Configure(value="/service/members")
protected void configureMembers(org.cometd.bayeux.server.ConfigurableServerChannel channel)

handleMembership

@Listener(value="/service/members")
public void handleMembership(org.cometd.bayeux.server.ServerSession client,
                                           org.cometd.bayeux.server.ServerMessage message)

configurePrivateChat

@Configure(value="/service/privatechat")
protected void configurePrivateChat(org.cometd.bayeux.server.ConfigurableServerChannel channel)

privateChat

@Listener(value="/service/privatechat")
protected void privateChat(org.cometd.bayeux.server.ServerSession client,
                                         org.cometd.bayeux.server.ServerMessage message)


Copyright © 2008-2011 Dojo Foundation. All Rights Reserved.