com.sun.grizzly.cometd.bayeux
Class Unsubscribe
java.lang.Object
com.sun.grizzly.cometd.bayeux.VerbBase
com.sun.grizzly.cometd.bayeux.Subscribe
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 classes/interfaces inherited from interface com.sun.grizzly.cometd.bayeux.Verb |
Verb.Type |
| 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 |
| 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 interface com.sun.grizzly.cometd.bayeux.Verb |
toJSON |
META_UNSUBSCRIBE
public static final String META_UNSUBSCRIBE
- See Also:
- Constant Field Values
Unsubscribe
public Unsubscribe()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.