Part of twisted.words.protocols.jabber.component View Source View In Hierarchy
XMPP Server's Router.
A router connects the different components of the XMPP service and routes messages between them based on the given routing table.
Connected components are trusted to have correct addressing in the stanzas they offer for routing.A route destination of
Noneadds a default route. Traffic for which no specific route exists, will be routed to this default route.
|Instance Variables||routes||Routes based on the host part of JIDs. Maps host names to the |
|Method||addRoute||Add a new route.|
|Method||removeRoute||Remove a route.|
|Method||route||Route a stanza.|
Add a new route.The passed XML Stream
xswill have an observer for all stanzas added to route its outgoing traffic. In turn, traffic for
destinationwill be passed to this stream.
|Parameters||destination||Destination of the route to be added as a host name or |
|xs||XML Stream to register the route for.
|Parameters||destination||Destination of the route that should be removed.
|xs||XML Stream to remove the route for.