Week 2 - status report (http://vysper-gsoc2010.blogspot.com/2010/06/week-3.html)

The following tasks were scheduled for this week:

    * handling the parsed messages and responding back to the client
    * implementing the logic of responses to the client (keeping a
session before sending an empty response on timeout, honoring the
'hold' attribute for requests,  acknowledgment 'ack' attribute  logic,
keeping the responses in some cache to be able to resend them if not
acknowledged by the client)

Completed:

    * redesigned parsing the XML with depth 0 for full XML documents
(the case of BOSH body wrapper element)
    * redesigned the session context to not use the HTTP session
maintained by Jetty via javax.servlet.http.HttpSession and instead use
the sid attribute to decide whether a new session should be created
and use it (sid) as a key in a hash map with the current sessions
    * session context attributes
    * write back initial session creation response
    * I figured out that there are needed HTTP headers
Access-control-allow-origin (more details at
https://developer.mozilla.org/en/HTTP_access_control) because
otherwise flXHR would not receive the response - I'm still not sure if
this is 100% required, because I do my testing on my Firefox 3.5.9
browser, so this could make me require the headers, but other browsers
might not need them specifically - although the older browser will
ignore the headers if present. As a side note these headers would also
be a very nice feature for latest browsers (Firefox 3.5, Safari 4)
that will allow native cross-domain XMLHttpRequest.

Patches:

    * https://issues.apache.org/jira/browse/VYSPER-212

In progress:

    * responses with authentication

Next:

    * authentication
    * keeping a session before sending an empty response on timeout
(wait), honoring the 'hold' attribute for request


Bogdan

Reply via email to