Openfire 3.5.0 Javadoc

org.jivesoftware.openfire
Class SessionPacketRouter

java.lang.Object
  extended by org.jivesoftware.openfire.SessionPacketRouter
All Implemented Interfaces:
PacketRouter

public class SessionPacketRouter
extends Object
implements PacketRouter

Handles the routing of packets to a particular session. It will invoke all of the appropriate interceptors, before and after having the server process the message.

Author:
Alexander Wenckus

Constructor Summary
SessionPacketRouter(LocalClientSession session)
           
 
Method Summary
 void route(org.dom4j.Element wrappedElement)
           
 void route(IQ packet)
          Routes the given IQ packet.
 void route(Message packet)
          Routes the given Message packet.
 void route(Packet packet)
          Routes the given packet based on its type.
 void route(Presence packet)
          Routes the given Presence packet.
 void setSkipJIDValidation(boolean skipJIDValidation)
          Sets if TO addresses of Elements being routed should be validated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPacketRouter

public SessionPacketRouter(LocalClientSession session)
Method Detail

setSkipJIDValidation

public void setSkipJIDValidation(boolean skipJIDValidation)
Sets if TO addresses of Elements being routed should be validated. Doing stringprep operations is very expensive and sometimes we already validated the TO address so there is no need to validate again the address. For instance, when using Connection Managers the validation is done by the Connection Manager so we can just trust the TO address. On the other hand, the FROM address is set by the server so there is no need to validate it.

By default validation is enabled.

Parameters:
skipJIDValidation - true if validation of TO address is enabled.

route

public void route(org.dom4j.Element wrappedElement)
           throws UnsupportedEncodingException,
                  UnknownStanzaException
Throws:
UnsupportedEncodingException
UnknownStanzaException

route

public void route(Packet packet)
Description copied from interface: PacketRouter
Routes the given packet based on its type.

Specified by:
route in interface PacketRouter
Parameters:
packet - The packet to route.

route

public void route(IQ packet)
Description copied from interface: PacketRouter
Routes the given IQ packet.

Specified by:
route in interface PacketRouter
Parameters:
packet - The packet to route.

route

public void route(Message packet)
Description copied from interface: PacketRouter
Routes the given Message packet.

Specified by:
route in interface PacketRouter
Parameters:
packet - The packet to route.

route

public void route(Presence packet)
Description copied from interface: PacketRouter
Routes the given Presence packet.

Specified by:
route in interface PacketRouter
Parameters:
packet - The packet to route.

Openfire 3.5.0 Javadoc

Copyright © 2003-2007 Jive Software.