com.sun.grizzly.cometd.bayeux
Class Connect

java.lang.Object
  extended by com.sun.grizzly.cometd.bayeux.VerbBase
      extended by com.sun.grizzly.cometd.bayeux.Connect
All Implemented Interfaces:
Verb
Direct Known Subclasses:
ConnectRequest, ConnectResponse, DisconnectRequest, DisconnectResponse, Reconnect

public abstract class Connect
extends VerbBase

Bayeux Connect implementation. See http://svn.xantus.org/shortbus/trunk/bayeux/protocol.txt for the technical details. // here's what the client then POST's: //----------------- // CLIENT -> SERVER //----------------- [ { "channel": "/meta/connect", "clientId": "SOME_UNIQUE_CLIENT_ID", "connectionType": "iframe", // optional "authToken":"SOME_NONCE_PREVIOUSLY_PROVIDED_BY_SERVER" } // , ... ] // NOTE: data should be POSTed with an encoding of // application/x-www-form-urlencoded, and the preceeding payload is // expected to be stored in the "message" parameter // the server now replies with the preamble followed by any number of // messages encoded in the tunnel-specific envelope: //----------------- // SERVER -> CLIENT //----------------- Comet -- cleaning up web development
...

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.grizzly.cometd.bayeux.Verb
Verb.Type
 
Field Summary
protected  String connectionType
           
static String DATA_WRAPPER_FOOTER
           
static String DATA_WRAPPER_HEADER
           
static String HTML_HEADER
           
static String META_CONNECT
           
 
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
Connect()
           
 
Method Summary
 boolean isValid()
          Check whether the Verb is valid.
 
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

HTML_HEADER

public static final String HTML_HEADER
See Also:
Constant Field Values

DATA_WRAPPER_HEADER

public static final String DATA_WRAPPER_HEADER
See Also:
Constant Field Values

DATA_WRAPPER_FOOTER

public static final String DATA_WRAPPER_FOOTER
See Also:
Constant Field Values

META_CONNECT

public static final String META_CONNECT
See Also:
Constant Field Values

connectionType

protected String connectionType
Constructor Detail

Connect

public Connect()
Method Detail

isValid

public boolean isValid()
Description copied from interface: Verb
Check whether the Verb is valid.

Specified by:
isValid in interface Verb
Overrides:
isValid in class VerbBase


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