|
Openfire 3.9.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.handler.PresenceSubscribeHandler
public class PresenceSubscribeHandler
Implements the presence protocol. Clients use this protocol to update presence and roster information.
The handler must properly detect the presence type, update the user's roster, and inform presence subscribers of the session's updated presence status. Presence serves many purposes in Jabber so this handler will likely be the most complex of all handlers in the server.
There are four basic types of presence updates:
Constructor Summary | |
---|---|
PresenceSubscribeHandler()
|
Method Summary | |
---|---|
void |
initialize(XMPPServer server)
Initializes the basic module. |
void |
process(org.xmpp.packet.Presence presence)
Process an XMPP packet. |
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 PresenceSubscribeHandler()
Method Detail |
---|
public void process(org.xmpp.packet.Presence presence) throws PacketException
ChannelHandler
process
in interface ChannelHandler<org.xmpp.packet.Presence>
presence
- a packet to process.
PacketException
- thrown if the packet is malformed (results in the sender's
session being shutdown).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.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |