-
OK, I probably do not understand it fully. But it seems to me this does not solve the main problem.
Let's say, we have 3 handlers registered for IQ Bind stanza. When the stanza is received, all the handlers are called but the above code does not allow us to have a name or any identification for the handler, right?
The code above only allows to assign name to handlers which are created at the time of making the request?
-
Yes: you are allowed to assign name to handler only when you make request. So: we can add names for requests in library code to see details of handlers calling. I think that in handlers in client code, should be normal logging to see what's going on. Named handlers should be used to diagnose problems with library code.
Allow to add handlers names in RequestBuilder and names for requests. It is required for debugging.