Hi,
I have done some codes changes in cometd directory.
Please let me know what you think.
Changes:
-------------
* The diff for existing files are in cometd.diff.
* The new files are in the jar file (see 3).
1. changes to compilance to Bayeux 1.0 Draft
2. change CometdServlet for double-checked locking issue
3. split the Request and Response objects
4. add validation
5. use enum in Verb
Notes/issues:
-------------------
1. the validation for supportedConnectionTypes is "not"
done as the client side javascript does not send it now.
Where do we get those javascript?
This has been discussed in comet email alias, too.
2. In Disconnect/Reconnect, there is no connectionType
in current spec. But this is used in VerbUtils.java.
Since I do not know the history, I have added this
extra fields to those objects temporary.
If you want me to remove it, then please let me know.
3. there is no split request/response for Ping/Status as
it is not in spec. (There is only empty impl in handler in
current code.)
Please let me know your comment.
Thanks.
Shing Wai Chan