FileDocCategorySizeDatePackage
Unsubscribe.javaAPI DocGlassfish v2 API3316Fri May 04 22:36:58 BST 2007com.sun.grizzly.cometd.bayeux

Unsubscribe

public 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

Fields Summary
Constructors Summary
public Unsubscribe()

        type = Verb.UNSUBSCRIBE;
    
Methods Summary
public java.lang.StringtoJSON()

        
        return "[{"              
                + "\"error\":\"" + error + "\","
                + "\"subscription\":\"" + subscription + "\"," 
                + "\"successful\":" + successful + ","                
                + "\"channel\":\"" + channel + "\""
                + "}]\n";