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, initialize
protected SocketPacketWriteHandler deliverHandler
public void deliver(org.xmpp.packet.Packet packet) throws UnauthorizedException, PacketException
PacketDeliverer
deliver
in interface PacketDeliverer
packet
- the packet to routePacketException
- if the packet is null or the packet could not be routed.UnauthorizedException
public void start() throws IllegalStateException
BasicModule
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
start
in interface Module
start
in class BasicModule
IllegalStateException
- If start is called before initialize
successfully returnspublic void stop()
BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
stop
in interface Module
stop
in class BasicModule
Copyright © 2003-2008 Jive Software.