On Fri, May 28, 2010 at 10:43 PM, Joseph Sillitoe <[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.  Here is the signature:
>
> protected void handleError(IQStanza stanza, ServerRuntimeContext
> serverRuntimeContext, SessionContext sessionContext)
>
> So my questions is:  Is this a bug in the DefaultIQHandler? Or should I not
> be using that class for this use case?

Welcome to Vysper :-) Now, Bernd is the expert in this area but I'll
attempt to answer the question.

If your IQ stanza is addressed directly to the other client, this
should be automatically handled by RelayingIQHandler which will relay
this stanza to the target client.

Bernd, on StanzaHandlerLookup.getIQHandler(): it seems like if it
would get a handler for an IQ stanza addressed for the server, without
any inner element, we would return the RelayingIQHandler. Is this the
correct behavior?

/niklas

Reply via email to