tigase.xmpp.impl
Class MessageAll

java.lang.Object
  extended by tigase.xmpp.XMPPProcessor
      extended by 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

Field Summary
 
Fields inherited from class tigase.xmpp.XMPPProcessor
ALL
 
Constructor Summary
MessageAll()
           
 
Method Summary
 String id()
          Method description
 void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings)
          Method description
 String[] supElements()
          Method description
 String[] supNamespaces()
          Method description
 
Methods inherited from class tigase.xmpp.XMPPProcessor
compareTo, concurrentQueuesNo, concurrentThreadsPerQueue, getInstance, init, isSupporting, supDiscoFeatures, supStreamFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tigase.xmpp.XMPPImplIfc
concurrentQueuesNo, concurrentThreadsPerQueue, init, isSupporting, supDiscoFeatures, supStreamFeatures
 

Constructor Detail

MessageAll

public MessageAll()
Method Detail

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.