com.sun.grizzly.cometd
Class BayeuxCometHandler
java.lang.Object
com.sun.grizzly.cometd.BayeuxCometHandlerBase
com.sun.grizzly.cometd.BayeuxCometHandler
- All Implemented Interfaces:
- CometHandler, CometdHandler
public class BayeuxCometHandler
- extends BayeuxCometHandlerBase
This class implement the Bayeux Server side protocol.
- Author:
- Jeanfrancois Arcand, TAKAI, Naoto
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONTENT_TYPE
public static final java.lang.String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
BAYEUX_COMET_HANDLER
public static final java.lang.String BAYEUX_COMET_HANDLER
- See Also:
- Constant Field Values
BayeuxCometHandler
public BayeuxCometHandler()
onHandshake
public void onHandshake(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onConnect
public void onConnect(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onDisconnect
public void onDisconnect(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
removeActiveHandler
public boolean removeActiveHandler(java.lang.String clientId,
CometContext ctx)
throws java.io.IOException
- Remove an
DataHandler from the list of active listener.
- Parameters:
clientId - ctx -
- Returns:
- Return true if the clientId was a registered
DataHandler
- Throws:
java.io.IOException
onReconnect
public void onReconnect(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onSubscribe
public void onSubscribe(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onUnsubscribe
public void onUnsubscribe(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onPublish
public void onPublish(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
newCometdContext
public static final CometdContext newCometdContext(CometdRequest req,
CometdResponse res,
Verb verb)
onTerminate
public void onTerminate(CometEvent event)
throws java.io.IOException
- Specified by:
onTerminate in interface CometHandler- Overrides:
onTerminate in class BayeuxCometHandlerBase
- Throws:
java.io.IOException
onInterrupt
public void onInterrupt(CometEvent event)
throws java.io.IOException
- Specified by:
onInterrupt in interface CometHandler- Overrides:
onInterrupt in class BayeuxCometHandlerBase
- Throws:
java.io.IOException
onPing
public void onPing(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
onStatus
public void onStatus(CometEvent event)
throws java.io.IOException
- Throws:
java.io.IOException
getChannels
public java.util.Collection<java.lang.String> getChannels()
addChannel
public void addChannel(java.lang.String channel)
removeChannel
public boolean removeChannel(java.lang.String channel)
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.