Hi Joe,

Disclosure: I didn't yet get to having a look at your implementation
of XEP-0012. Sorry for that.
Note: This kind of question should better be discussed over at d...@.

On Sat, Jun 5, 2010 at 23:21, Bernd Fondermann
<[email protected]> wrote:
> I'm looking at implementing the "XEP-0012 Last Activity" extension and
> have a questions about handling error type IQ stanzas. Part of the
> specification specified the needs to be able to pass-through these
> stanzas from client to client but the method signature of the
> handleError method defined in the DefaultIQHandler does not alllow a
> return.

IQ stanza requests are typically not passed through from client to
client. This is especially noted in XEP-0012:
>>>>
As specified in XMPP Core [1] and XMPP IM  [2], an IQ stanza of type
"get" sent to a bare JID <[email protected]> is handled by the
user's server on the user's behalf, not delivered to one or more
connected or available resources.
<<<<

So, extending DefaultIQHandler is the way to go and the server can
handle requests on behalf of the client.
If the IQ-GET should return an error, you can do so in handleGet() -
and DefaultIQHandler.handleGet() is an example for this case, being a
stub implementation.
There is no need to handle error stanzas, since they should not get to
the server, only GETs.

I highly recommend letting the server handle all such IQ GETs.

  Bernd

Reply via email to