tigase.xmpp.impl
Class MessageAll
java.lang.Object
tigase.xmpp.XMPPProcessor
tigase.xmpp.impl.MessageAll
- All Implemented Interfaces:
- Comparable<XMPPProcessor>, XMPPImplIfc, XMPPProcessorIfc
public class MessageAll
- extends XMPPProcessor
- implements XMPPProcessorIfc
Variant of the Message
forwarder class. This implementation forwards
messages to all connected resources.
When a message 'from' the user is being processed, the plugin forwards
the message to the destination address and also sends the message to all other connected
resources.
When a message 'to' the user is being processed, the plugin forwards
the message to all connected resources.
The idea behind this implementation is to keep all connected resources synchronized with
a complete chat content. User should be able to switch between connections and continue
the chat.
Created: Feb 14, 2010 4:35:45 PM
- Version:
- $Rev: 2090 $
- Author:
- Artur Hefczyc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageAll
public MessageAll()
id
public String id()
- Method description
- Specified by:
id
in interface XMPPImplIfc
- Returns:
process
public void process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
throws XMPPException
- Method description
- Specified by:
process
in interface XMPPProcessorIfc
- Parameters:
packet
- session
- repo
- results
- settings
-
- Throws:
XMPPException
supElements
public String[] supElements()
- Method description
- Specified by:
supElements
in interface XMPPImplIfc
- Overrides:
supElements
in class XMPPProcessor
- Returns:
supNamespaces
public String[] supNamespaces()
- Method description
- Specified by:
supNamespaces
in interface XMPPImplIfc
- Overrides:
supNamespaces
in class XMPPProcessor
- Returns:
Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.