You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Mike Mahoney <mi...@thingworx.com> on 2011/10/25 20:54:47 UTC

BOSH doPost() question

Hi Everyone,

Quick question about org.apache.vysper.xmpp.extension.xep0124.BoshServlet.doPost(). At the very beginning of the method is the following check:


BoshResponse boshResponse = (BoshResponse) req.getAttribute("response");
if (boshResponse != null) {
        // if the continuation is resumed or expired
        writeResponse(resp, boshResponse);
        return;
}

Under what conditions is the boshResponse not null, and where does it get set? I'm just confused as to why the check is happening at the very beginning of the method, before any other processing occurs.

Thanks,
Mike