|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.container.BasicModule org.jivesoftware.openfire.PresenceRouter
public class PresenceRouter
Route presence packets throughout the server.
Routing is based on the recipient and sender addresses. The typical packet will often be routed twice, once from the sender to some internal server component for handling or processing, and then back to the router to be delivered to it's final destination.
Constructor Summary | |
---|---|
PresenceRouter()
Constructs a presence router. |
Method Summary | |
---|---|
void |
initialize(XMPPServer server)
Initializes the basic module. |
void |
route(Presence packet)
Routes presence packets. |
void |
routingFailed(JID receipient,
Packet packet)
Notification message indicating that a packet has failed to be routed to the receipient. |
Methods inherited from class org.jivesoftware.openfire.container.BasicModule |
---|
destroy, getName, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PresenceRouter()
Method Detail |
---|
public void route(Presence packet)
packet
- the packet to route.
NullPointerException
- if the packet is null.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.public void routingFailed(JID receipient, Packet packet)
receipient
- address of the entity that failed to receive the packet.packet
- Presence packet that failed to be sent to the receipient.
|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |