public abstract class IQHandler extends BasicModule implements ChannelHandler
| Modifier and Type | Field and Description |
|---|---|
protected PacketDeliverer |
deliverer |
protected SessionManager |
sessionManager |
| Constructor and Description |
|---|
IQHandler(String moduleName)
Create a basic module with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
abstract IQHandlerInfo |
getInfo()
Returns the handler information to help generically handle IQ packets.
|
abstract org.xmpp.packet.IQ |
handleIQ(org.xmpp.packet.IQ packet)
Handles the received IQ packet.
|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
void |
process(org.xmpp.packet.Packet packet)
Process an XMPP packet.
|
destroy, getName, start, stopprotected PacketDeliverer deliverer
protected SessionManager sessionManager
public IQHandler(String moduleName)
moduleName - The name for the module or null to use the defaultpublic void process(org.xmpp.packet.Packet packet)
throws PacketException
ChannelHandlerprocess in interface ChannelHandlerpacket - a packet to process.PacketException - thrown if the packet is malformed (results in the sender's
session being shutdown).public abstract org.xmpp.packet.IQ handleIQ(org.xmpp.packet.IQ packet)
throws UnauthorizedException
packet - the IQ packet to handle.UnauthorizedException - if the user that sent the packet is not
authorized to request the given operation.public abstract IQHandlerInfo getInfo()
public void initialize(XMPPServer server)
BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
initialize in interface Moduleinitialize in class BasicModuleserver - the server hosting this module.Copyright © 2003-2008 Jive Software.