public class MulticastRouter extends BasicModule implements ServerFeaturesProvider, org.xmpp.component.IQResultListener
The current implementation will only search up to the first level of nodes of remote servers when trying to find out if remote servers have support for multicast service. It is assumed that it is highly unlikely for servers to have a node in the second or third depth level providing the multicast service. Servers should normally provide this service themselves or at least as a first level node. This is an implementation of JEP-0033: Extended Stanza Addressing
Constructor and Description |
---|
MulticastRouter() |
Modifier and Type | Method and Description |
---|---|
void |
answerTimeout(String packetId) |
Iterator<String> |
getFeatures()
Returns an Iterator (of String) with the supported features by the server.
|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
void |
receivedAnswer(org.xmpp.packet.IQ packet) |
void |
route(org.xmpp.packet.Packet packet) |
destroy, getName, start, stop
public void route(org.xmpp.packet.Packet packet)
public void receivedAnswer(org.xmpp.packet.IQ packet)
receivedAnswer
in interface org.xmpp.component.IQResultListener
public void answerTimeout(String packetId)
answerTimeout
in interface org.xmpp.component.IQResultListener
public Iterator<String> getFeatures()
ServerFeaturesProvider
getFeatures
in interface ServerFeaturesProvider
public void initialize(XMPPServer server)
BasicModule
Initializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize
in interface Module
initialize
in class BasicModule
server
- the server hosting this module.Copyright © 2003–2019 Ignite Realtime. All rights reserved.