tigase.xmpp.impl
Class StartTLS

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

public class StartTLS
extends XMPPProcessor
implements XMPPProcessorIfc

Describe class StartTLS here. Created: Fri Mar 24 07:22:57 2006

Version:
$Rev: 1380 $
Author:
Artur Hefczyc

Field Summary
static java.lang.String TLS_REQUIRED_KEY
           
 
Fields inherited from class tigase.xmpp.XMPPProcessor
ALL
 
Constructor Summary
StartTLS()
           
 
Method Summary
 java.lang.String id()
          Method id returns a unique ID of the plugin.
 void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, java.util.Queue<Packet> results, java.util.Map<java.lang.String,java.lang.Object> settings)
           
 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.
 tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
          Method supStreamFeatures returns an array of XML Elements with stream features which have to be returned to the client uppon request.
 
Methods inherited from class tigase.xmpp.XMPPProcessor
compareTo, getInstance, init, isSupporting, supDiscoFeatures
 
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, supDiscoFeatures
 

Field Detail

TLS_REQUIRED_KEY

public static final java.lang.String TLS_REQUIRED_KEY
See Also:
Constant Field Values
Constructor Detail

StartTLS

public StartTLS()
Method Detail

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

supStreamFeatures

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

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

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)
Specified by:
process in interface XMPPProcessorIfc


Copyright © 2009 Tigase. All Rights Reserved.