|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.xmpp.XMPPProcessor
public abstract class XMPPProcessor
XMPPProcessor abstract class contains basic definition for
XMPP processor.
To create new processor implementing particular XMPP functionality
it is enough to extend this class and implement one abstract method.
Additionally to allow system properly recognize this processor you need also
to implement own constructor which sets proper values to parent constructor.
You must implement exactly one constructor with zero parameters which calls
parent constructor with proper values. Refer to constructor documentation
for information about required parameters.
To fully interact with entity connected to the session or with other entities
in XMPP network you should be also familiar with
addReply(...), addMessage(...) and
addBroadcast(...) methods.
There is also partialy implemented functionality to send messages to entities
in other networks like SMTP or other implemented by the server.
Once this implementation is finished there will be more information available.
If you, however, are interested in this particular feature send a question
to author.
Created: Tue Oct 5 20:31:23 2004
| Constructor Summary | |
|---|---|
protected |
XMPPProcessor()
|
| Method Summary | |
|---|---|
int |
compareTo(XMPPProcessor proc)
Method compareTo is used to perform |
XMPPProcessor |
getInstance()
|
void |
init(UserRepository rep)
Method init is called just after the plugin has been
loaded into memory. |
boolean |
isSupporting(java.lang.String element,
java.lang.String ns)
Method isSupporting takes element name and namespace for this
element and determines whether this element can be processed by this plugin. |
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. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tigase.xmpp.XMPPImplIfc |
|---|
id |
| Constructor Detail |
|---|
protected XMPPProcessor()
| Method Detail |
|---|
public java.lang.String[] supElements()
XMPPImplIfcsupElements 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.
supElements in interface XMPPImplIfcString[] valuepublic java.lang.String[] supNamespaces()
XMPPImplIfcsupNamespaces 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.
supNamespaces in interface XMPPImplIfcString[] valuepublic tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
XMPPImplIfcsupStreamFeatures 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.
supStreamFeatures in interface XMPPImplIfcsession - a XMPPResourceConnection value
Element[] valuepublic tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
XMPPImplIfcsupDiscoFeatures 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.
supDiscoFeatures in interface XMPPImplIfcsession - a XMPPResourceConnection value
Element[] value
public boolean isSupporting(java.lang.String element,
java.lang.String ns)
XMPPImplIfcisSupporting takes element name and namespace for this
element and determines whether this element can be processed by this plugin.
isSupporting in interface XMPPImplIfcelement - a String valuens - a String value
boolean valuepublic XMPPProcessor getInstance()
public final int compareTo(XMPPProcessor proc)
compareTo is used to perform
compareTo in interface java.lang.Comparable<XMPPProcessor>proc - an XMPPProcessor value
int value
public void init(UserRepository rep)
throws TigaseDBException
XMPPImplIfcinit is called just after the plugin has been
loaded into memory. The idea behind this is to allow it to initialize
or check the database. This might be especially useful for plugins
which want to have a database access via non-standard stored procedures
or need schema upgrade.
init in interface XMPPImplIfcrep - an UserRepository value
TigaseDBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||