public class SessionPacketRouter extends Object implements PacketRouter
Modifier and Type | Field and Description |
---|---|
protected LocalClientSession |
session |
Constructor and Description |
---|
SessionPacketRouter(LocalClientSession session) |
Modifier and Type | Method and Description |
---|---|
void |
route(org.dom4j.Element wrappedElement) |
void |
route(org.xmpp.packet.IQ packet)
Routes the given IQ packet.
|
void |
route(org.xmpp.packet.Message packet)
Routes the given Message packet.
|
void |
route(org.xmpp.packet.Packet packet)
Routes the given packet based on its type.
|
void |
route(org.xmpp.packet.Presence packet)
Routes the given Presence packet.
|
void |
setSkipJIDValidation(boolean skipJIDValidation)
Sets if TO addresses of Elements being routed should be validated.
|
protected LocalClientSession session
public SessionPacketRouter(LocalClientSession session)
public void setSkipJIDValidation(boolean skipJIDValidation)
By default validation is enabled.
skipJIDValidation
- true if validation of TO address is enabled.public void route(org.dom4j.Element wrappedElement) throws UnknownStanzaException
UnknownStanzaException
public void route(org.xmpp.packet.Packet packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(org.xmpp.packet.IQ packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(org.xmpp.packet.Message packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.public void route(org.xmpp.packet.Presence packet)
PacketRouter
route
in interface PacketRouter
packet
- The packet to route.Copyright © 2003-2008 Jive Software.