|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.net.StanzaHandler org.jivesoftware.openfire.net.ClientStanzaHandler
public class ClientStanzaHandler
Handler of XML stanzas sent by clients connected directly to the server. Received packet will have their FROM attribute overriden to avoid spoofing.
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.
Field Summary |
---|
Fields inherited from class org.jivesoftware.openfire.net.StanzaHandler |
---|
CHARSET, connection, serverName, session |
Constructor Summary | |
---|---|
ClientStanzaHandler(PacketRouter router,
String serverName,
Connection connection)
|
Method Summary | |
---|---|
protected void |
processIQ(IQ packet)
Process the received IQ packet. |
protected void |
processMessage(Message packet)
Process the received Message packet. |
protected void |
processPresence(Presence packet)
Process the received Presence packet. |
Methods inherited from class org.jivesoftware.openfire.net.StanzaHandler |
---|
createSession, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientStanzaHandler(PacketRouter router, String serverName, Connection connection)
Method Detail |
---|
protected void processIQ(IQ packet) throws UnauthorizedException
StanzaHandler
PacketInterceptor
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 StanzaHandler
packet
- the received packet.
UnauthorizedException
- if service is not available to sender.protected void processPresence(Presence packet) throws UnauthorizedException
StanzaHandler
PacketInterceptor
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 StanzaHandler
packet
- the received packet.
UnauthorizedException
- if service is not available to sender.protected void processMessage(Message packet) throws UnauthorizedException
StanzaHandler
PacketInterceptor
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 StanzaHandler
packet
- the received packet.
UnauthorizedException
- if service is not available to sender.
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |