Class TransportHandler
java.lang.Object
org.jivesoftware.openfire.container.BasicModule
org.jivesoftware.openfire.transport.TransportHandler
- All Implemented Interfaces:
ChannelHandler<org.xmpp.packet.Packet>,Module
Routes packets to the appropriate transport gateway or drops the packet.
- Author:
- Iain Shigeoka
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransport(Channel<org.xmpp.packet.Packet> transport) voidinitialize(XMPPServer server) Initializes the basic module.voidprocess(org.xmpp.packet.Packet packet) Process an XMPP packet.Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName, start, stop
-
Constructor Details
-
TransportHandler
public TransportHandler()
-
-
Method Details
-
addTransport
-
process
Description copied from interface:ChannelHandlerProcess an XMPP packet.- Specified by:
processin interfaceChannelHandler<org.xmpp.packet.Packet>- Parameters:
packet- a packet to process.- Throws:
UnauthorizedException- if not allowed to process the packet.PacketException- thrown if the packet is malformed (results in the sender's session being shutdown).
-
initialize
Description copied from class:BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
- Specified by:
initializein interfaceModule- Overrides:
initializein classBasicModule- Parameters:
server- the server hosting this module.
-