FileDocCategorySizeDatePackage
BayeuxCometHandlerBase.javaAPI DocGlassfish v2 API3758Fri May 04 22:36:56 BST 2007com.sun.grizzly.cometd

BayeuxCometHandlerBase

public abstract class BayeuxCometHandlerBase extends Object implements CometdHandler
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
public BayeuxCometHandlerBase()

    
Methods Summary
public voidattach(java.lang.Object attachment)

        ; // Not used
    
public voidonEvent(com.sun.enterprise.web.connector.grizzly.comet.CometEvent event)

        
        Object object = event.attachment();       
        if (object instanceof CometdContext){
            Verb verb = ((CometdContext)object).getVerb();

            if (verb.getType() == Verb.HANDSHAKE){
                onHandshake(event);
            } else if (verb.getType() == Verb.CONNECT){
                onConnect(event);
            } else if (verb.getType() == Verb.DISCONNECT){
                onDisconnect(event);
            } else if (verb.getType() == Verb.RECONNECT){
                onReconnect(event);
            } else if (verb.getType() == Verb.SUBSCRIBE){
                onSubscribe(event);
            } else if (verb.getType() == Verb.UNSUBSCRIBE){
                onUnsubscribe(event);
            } else if (verb.getType() == Verb.DATA){
                onData(event);
            } else if (verb.getType() == Verb.PING){
                onPing(event);
            } else if (verb.getType() == Verb.STATUS){
                onStatus(event);
            }    
        }
    
public voidonInitialize(com.sun.enterprise.web.connector.grizzly.comet.CometEvent event)

        ; // Not used        
    
public voidonInterrupt(com.sun.enterprise.web.connector.grizzly.comet.CometEvent event)

        ; // Not used        
    
public voidonTerminate(com.sun.enterprise.web.connector.grizzly.comet.CometEvent event)

        ; // Not used