

def route(self, stanza):
    '\n        Route a stanza.\n\n        @param stanza: The stanza to be routed.\n        @type stanza: L{domish.Element}.\n        '
    destination = JID(stanza['to'])
    log.msg(('Routing to %s: %r' % (destination.full(), stanza.toXml())))
    if (destination.host in self.routes):
        self.routes[destination.host].send(stanza)
    else:
        self.routes[None].send(stanza)

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/protocols/jabber/component.py Router.route/original