com.sun.grizzly.cometd.bayeux
Class Connect
java.lang.Object
com.sun.grizzly.cometd.bayeux.VerbBase
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 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 |
|
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 interface com.sun.grizzly.cometd.bayeux.Verb |
toJSON |
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
Connect
public Connect()
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.