public class TransportHandler extends BasicModule implements ChannelHandler
| Constructor and Description |
|---|
TransportHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransport(Channel<org.xmpp.packet.Packet> transport) |
void |
initialize(XMPPServer server)
Initializes the basic module.
|
void |
process(org.xmpp.packet.Packet packet)
Process an XMPP packet.
|
destroy, getName, start, stoppublic void addTransport(Channel<org.xmpp.packet.Packet> transport)
public void process(org.xmpp.packet.Packet packet)
throws UnauthorizedException,
PacketException
ChannelHandlerprocess in interface ChannelHandlerpacket - a packet to process.UnauthorizedException - if not allowed to process the packet.PacketException - thrown if the packet is malformed (results in the sender's
session being shutdown).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.