public class ClientStanzaHandler extends StanzaHandler
By default the hostname specified in the stream header sent by clients will not be validated. When validated the TO attribute of the stream header has to match the server name or a valid subdomain. If the value of the 'to' attribute is not valid then a host-unknown error will be returned. To enable the validation set the system property xmpp.client.validate.host to true.
CHARSET, connection, session| Constructor and Description |
|---|
ClientStanzaHandler(PacketRouter router,
Connection connection) |
ClientStanzaHandler(PacketRouter router,
String serverName,
Connection connection)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processIQ(org.xmpp.packet.IQ packet)
Process the received IQ packet.
|
protected void |
processMessage(org.xmpp.packet.Message packet)
Process the received Message packet.
|
protected void |
processPresence(org.xmpp.packet.Presence packet)
Process the received Presence packet.
|
createSession, getAddress, process, setSessionpublic ClientStanzaHandler(PacketRouter router, Connection connection)
@Deprecated public ClientStanzaHandler(PacketRouter router, String serverName, Connection connection)
protected void processIQ(org.xmpp.packet.IQ packet)
throws UnauthorizedException
StanzaHandlerPacketInterceptor will be invoked before
and after the packet was routed.
Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.
processIQ in class StanzaHandlerpacket - the received packet.UnauthorizedException - if service is not available to sender.protected void processPresence(org.xmpp.packet.Presence packet)
throws UnauthorizedException
StanzaHandlerPacketInterceptor will be invoked before
and after the packet was routed.
Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.
processPresence in class StanzaHandlerpacket - the received packet.UnauthorizedException - if service is not available to sender.protected void processMessage(org.xmpp.packet.Message packet)
throws UnauthorizedException
StanzaHandlerPacketInterceptor will be invoked before
and after the packet was routed.
Subclasses may redefine this method for different reasons such as modifying the sender of the packet to avoid spoofing, rejecting the packet or even process the packet in another thread.
processMessage in class StanzaHandlerpacket - the received packet.UnauthorizedException - if service is not available to sender.Copyright © 2003-2008 Jive Software.