public class PacketDelivererImpl extends BasicModule implements PacketDeliverer
| Modifier and Type | Field and Description |
|---|---|
protected SocketPacketWriteHandler |
deliverHandler
The handler that does the actual delivery (could be a channel instead)
|
| Constructor and Description |
|---|
PacketDelivererImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(org.xmpp.packet.Packet packet)
Delivers the given packet based on packet recipient and sender.
|
void |
start()
Starts the basic module.
|
void |
stop()
Stops the basic module.
|
destroy, getName, initializeprotected SocketPacketWriteHandler deliverHandler
public void deliver(org.xmpp.packet.Packet packet)
throws UnauthorizedException,
PacketException
PacketDelivererdeliver in interface PacketDelivererpacket - the packet to routePacketException - if the packet is null or the packet could not be routed.UnauthorizedExceptionpublic void start()
throws IllegalStateException
BasicModuleStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start in interface Modulestart in class BasicModuleIllegalStateException - If start is called before initialize
successfully returnspublic void stop()
BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop in interface Modulestop in class BasicModuleCopyright © 2003-2008 Jive Software.