tigase.xmpp
public abstract class XMPPProcessor extends Object implements XMPPImplIfc
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.addReply(...)
, addMessage(...)
and
addBroadcast(...)
methods.Created: Tue Oct 5 20:31:23 2004
Modifier and Type | Field and Description |
---|---|
protected static String |
ALL_NAMES
Field description
|
protected static String[][] |
ALL_PATHS
Field description
|
CLIENT_XMLNS
Modifier | Constructor and Description |
---|---|
protected |
XMPPProcessor()
Constructs ...
|
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
id
protected static final String ALL_NAMES
protected static final String[][] ALL_PATHS
public Authorization canHandle(Packet packet, XMPPResourceConnection conn)
canHandle
in interface XMPPImplIfc
packet
- conn
- public final int compareTo(XMPPImplIfc proc)
compareTo
is used to performcompareTo
in interface Comparable<XMPPImplIfc>
proc
- an XMPPProcessor
valueint
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 XMPPImplIfc
settings
- TigaseDBException
public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
supDiscoFeatures
in interface XMPPImplIfc
session
- public String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
@Deprecated public String[] supElements()
supElements
in interface XMPPImplIfc
supElementNamePaths
public String[] supNamespaces()
supNamespaces
in interface XMPPImplIfc
public tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
supStreamFeatures
in interface XMPPImplIfc
session
- public Set<StanzaType> supTypes()
supTypes
in interface XMPPImplIfc
public XMPPProcessor getInstance()
public void getStatistics(StatisticsList list)
getStatistics
in interface XMPPImplIfc
list
- @Deprecated public boolean isSupporting(String element, String ns)
isSupporting
in interface XMPPImplIfc
element
- ns
- Copyright © 2013 Tigase. All rights reserved.