|
||||||||||
| 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
| Field Summary | |
|---|---|
protected static String |
ALL_NAMES
Field description |
protected static String[][] |
ALL_PATHS
Field description |
| Fields inherited from interface tigase.xmpp.XMPPImplIfc |
|---|
CLIENT_XMLNS |
| Constructor Summary | |
|---|---|
protected |
XMPPProcessor()
Constructs ... |
| Method Summary | |
|---|---|
Authorization |
canHandle(Packet packet,
XMPPResourceConnection conn)
Method description |
int |
compareTo(XMPPImplIfc proc)
Method compareTo is used to perform |
int |
concurrentQueuesNo()
Method description |
int |
concurrentThreadsPerQueue()
Deprecated. |
XMPPProcessor |
getInstance()
Method description |
void |
getStatistics(StatisticsList list)
Method description |
void |
init(Map<String,Object> settings)
Method description |
boolean |
isSupporting(String element,
String ns)
Deprecated. |
tigase.xml.Element[] |
supDiscoFeatures(XMPPResourceConnection session)
Method description |
String[][] |
supElementNamePaths()
Method description |
String[] |
supElements()
Deprecated. |
String[] |
supNamespaces()
Method description |
tigase.xml.Element[] |
supStreamFeatures(XMPPResourceConnection session)
Method description |
Set<StanzaType> |
supTypes()
Method description |
| 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 |
| Field Detail |
|---|
protected static final String ALL_NAMES
protected static final String[][] ALL_PATHS
| Constructor Detail |
|---|
protected XMPPProcessor()
| Method Detail |
|---|
public Authorization canHandle(Packet packet,
XMPPResourceConnection conn)
canHandle in interface XMPPImplIfcpacket - conn -
public final int compareTo(XMPPImplIfc proc)
compareTo is used to perform
compareTo in interface Comparable<XMPPImplIfc>proc - an XMPPProcessor value
int valuepublic int concurrentQueuesNo()
concurrentQueuesNo in interface XMPPImplIfc@Deprecated public int concurrentThreadsPerQueue()
concurrentThreadsPerQueue in interface XMPPImplIfc
public void init(Map<String,Object> settings)
throws TigaseDBException
init in interface XMPPImplIfcsettings -
TigaseDBExceptionpublic tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
supDiscoFeatures in interface XMPPImplIfcsession -
public String[][] supElementNamePaths()
supElementNamePaths in interface XMPPImplIfc@Deprecated public String[] supElements()
supElements in interface XMPPImplIfcsupElementNamePathspublic String[] supNamespaces()
supNamespaces in interface XMPPImplIfcpublic tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
supStreamFeatures in interface XMPPImplIfcsession -
public Set<StanzaType> supTypes()
supTypes in interface XMPPImplIfcpublic XMPPProcessor getInstance()
public void getStatistics(StatisticsList list)
getStatistics in interface XMPPImplIfclist -
@Deprecated
public boolean isSupporting(String element,
String ns)
isSupporting in interface XMPPImplIfcelement - ns -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||