com.sun.grizzly.cometd
Class BayeuxParser
java.lang.Object
com.sun.grizzly.cometd.BayeuxParser
public class BayeuxParser
- extends Object
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 String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
dumyhandler
protected static final DataHandler dumyhandler
BayeuxParser
public BayeuxParser()
BayeuxParser
public BayeuxParser(PublishInterceptor publishInterceptor)
parse
public void parse(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onHandshake
public void onHandshake(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onConnect
public void onConnect(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onDisconnect
public void onDisconnect(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onReconnect
public void onReconnect(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onSubscribe
public void onSubscribe(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onUnsubscribe
public void onUnsubscribe(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onPublish
public void onPublish(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onPing
public void onPing(CometdContext cometdContext)
throws IOException
- Throws:
IOException
onStatus
public void onStatus(CometdContext cometdContext)
throws IOException
- Throws:
IOException
getPublishInterceptor
public PublishInterceptor getPublishInterceptor()
- Interceptor, which (if not null) will process published data on channel.
If Interceptor is null - default logic is applied - everyone gets notified.
- Returns:
PublishInterceptor
setPublishInterceptor
public void setPublishInterceptor(PublishInterceptor publishInterceptor)
- Interceptor, which (if not null) will process published data on channel.
If Interceptor is null - default logic is applied - everyone gets notified.
- Parameters:
publishInterceptor
- PublishInterceptor
Copyright © 2012 Oracle Corporation. All Rights Reserved.