com.sun.grizzly.cometd.bayeux
Class Unsubscribe

java.lang.Object
  extended by com.sun.grizzly.cometd.bayeux.VerbBase
      extended by com.sun.grizzly.cometd.bayeux.Subscribe
          extended by com.sun.grizzly.cometd.bayeux.Unsubscribe
All Implemented Interfaces:
Verb
Direct Known Subclasses:
UnsubscribeRequest, UnsubscribeResponse

public abstract class Unsubscribe
extends Subscribe

Bayeux Unsubscribe implementation. See http://svn.xantus.org/shortbus/trunk/bayeux/protocol.txt for the technical details. // unsubscription for same: //----------------- // CLIENT -> SERVER //----------------- [ { "channel": "/meta/unsubscribe", "subscription": "/some/other/channel", // optional "authToken": "SOME_NONCE_PREVIOUSLY_PROVIDED_BY_SERVER" } // , ... ] // and the server response: //----------------- // SERVER -> CLIENT //----------------- [ { "channel": "/meta/unsubscribe", "subscription": "/some/other/channel", "successful": true, "clientId": "SOME_UNIQUE_CLIENT_ID", "error": "", // optional "authToken": "SOME_NONCE" } // , ... ]

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.grizzly.cometd.bayeux.Verb
Verb.Type
 
Field Summary
static String META_UNSUBSCRIBE
           
 
Fields inherited from class com.sun.grizzly.cometd.bayeux.Subscribe
META_SUBSCRIBE, subscription
 
Fields inherited from class com.sun.grizzly.cometd.bayeux.VerbBase
advice, authToken, channel, clientId, data, dataId, error, ext, first, follow, id, last, metaChannel, successful, type
 
Constructor Summary
Unsubscribe()
           
 
Method Summary
 
Methods inherited from class com.sun.grizzly.cometd.bayeux.Subscribe
getBody, getSubscription, isValid, setSubscription
 
Methods inherited from class com.sun.grizzly.cometd.bayeux.VerbBase
getAdvice, getAuthToken, getChannel, getClientId, getData, getDataId, getExt, getId, getJSONPostfix, getJSONPrefix, getMetaChannel, getType, hasValidAdvice, isFirst, isFollow, isLast, setAdvice, setAuthToken, setChannel, setClientId, setData, setDataId, setExt, setFirst, setFollow, setId, setLast, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.grizzly.cometd.bayeux.Verb
toJSON
 

Field Detail

META_UNSUBSCRIBE

public static final String META_UNSUBSCRIBE
See Also:
Constant Field Values
Constructor Detail

Unsubscribe

public Unsubscribe()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.