tigase.xmpp.impl
Class JabberIqIq

java.lang.Object
  extended by tigase.xmpp.XMPPProcessor
      extended by tigase.xmpp.impl.JabberIqIq
All Implemented Interfaces:
java.lang.Comparable<XMPPProcessor>, XMPPImplIfc, XMPPPreprocessorIfc, XMPPProcessorIfc

public class JabberIqIq
extends XMPPProcessor
implements XMPPProcessorIfc, XMPPPreprocessorIfc

Describe class JabberIqIq here. Created: Sun Feb 25 23:37:48 2007

Version:
$Rev: 1144 $
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.xmpp.XMPPProcessor
ALL
 
Constructor Summary
JabberIqIq()
           
 
Method Summary
static java.lang.String calculateIQ(java.lang.String iq_level)
          IQ range table: Number Range Descriptive Label 140+ genius 120-139 very superior 110-119 superior 90-109 normal 80-89 dull 70-79 borderline deficiency 50-69 moron 20-49 imbecile 0-19 idiot
 java.lang.String id()
          Method id returns a unique ID of the plugin.
 boolean preProcess(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, java.util.Queue<Packet> results)
           
 void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, java.util.Queue<Packet> results, java.util.Map<java.lang.String,java.lang.Object> settings)
           
 tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
          Method supDiscoFeatures returns an array of XML Elements with service discovery features which have to be returned to the client uppon request.
 java.lang.String[] supElements()
          Method supElements returns an array of element names for stanzas which can be processed by this plugin.
 java.lang.String[] supNamespaces()
          Method supNamespaces returns an array of namespaces for stanzas which can be processed by this pluing.
 
Methods inherited from class tigase.xmpp.XMPPProcessor
compareTo, getInstance, init, isSupporting, 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
init, isSupporting, supStreamFeatures
 

Constructor Detail

JabberIqIq

public JabberIqIq()
Method Detail

supDiscoFeatures

public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
Description copied from interface: XMPPImplIfc
Method supDiscoFeatures returns an array of XML Elements with service discovery features which have to be returned to the client uppon request. Service discovery features returned by this method correspond to services supported by this plugin.

Specified by:
supDiscoFeatures in interface XMPPImplIfc
Overrides:
supDiscoFeatures in class XMPPProcessor
Parameters:
session - a XMPPResourceConnection value
Returns:
an Element[] value

id

public java.lang.String id()
Description copied from interface: XMPPImplIfc
Method id returns a unique ID of the plugin. Each plugin has own, unique ID which is used in the configuration file to determine whether it needs to be loaded or not. In most cases the ID can be equal to XMLNS of the packages processed by the plugin.

Specified by:
id in interface XMPPImplIfc
Returns:
a String value

supElements

public java.lang.String[] supElements()
Description copied from interface: XMPPImplIfc
Method supElements returns an array of element names for stanzas which can be processed by this plugin. Each element name corresponds to XMLNS returned in array by supNamespaces() method.

Specified by:
supElements in interface XMPPImplIfc
Overrides:
supElements in class XMPPProcessor
Returns:
a String[] value

supNamespaces

public java.lang.String[] supNamespaces()
Description copied from interface: XMPPImplIfc
Method supNamespaces returns an array of namespaces for stanzas which can be processed by this pluing. Each namespace corresponds to element name returned in array by supElemenets() method.

Specified by:
supNamespaces in interface XMPPImplIfc
Overrides:
supNamespaces in class XMPPProcessor
Returns:
a String[] value

preProcess

public boolean preProcess(Packet packet,
                          XMPPResourceConnection session,
                          NonAuthUserRepository repo,
                          java.util.Queue<Packet> results)
Specified by:
preProcess in interface XMPPPreprocessorIfc

process

public void process(Packet packet,
                    XMPPResourceConnection session,
                    NonAuthUserRepository repo,
                    java.util.Queue<Packet> results,
                    java.util.Map<java.lang.String,java.lang.Object> settings)
             throws XMPPException
Specified by:
process in interface XMPPProcessorIfc
Throws:
XMPPException

calculateIQ

public static java.lang.String calculateIQ(java.lang.String iq_level)
IQ range table: Number Range Descriptive Label 140+ genius 120-139 very superior 110-119 superior 90-109 normal 80-89 dull 70-79 borderline deficiency 50-69 moron 20-49 imbecile 0-19 idiot



Copyright © 2009 Tigase. All Rights Reserved.