public class PacketTransporterImpl extends BasicModule
Constructor and Description |
---|
PacketTransporterImpl()
This is a singleton, you can't create one.
|
Modifier and Type | Method and Description |
---|---|
void |
deliver(org.xmpp.packet.Packet packet)
Delivers the given packet based on packet recipient and sender.
|
TransportHandler |
getTransportHandler()
Obtain the transport handler that this transporter uses for delivering
transport packets.
|
void |
initialize(XMPPServer server)
Initializes the basic module.
|
destroy, getName, start, stop
public PacketTransporterImpl()
public TransportHandler getTransportHandler()
public void deliver(org.xmpp.packet.Packet packet) throws UnauthorizedException, PacketException
packet
- The packet to routeNullPointerException
- If the packet is null or the
packet could not be routedUnauthorizedException
PacketException
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.Copyright © 2003-2008 Jive Software.