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
|
protected static ComponentInfo |
cmpInfo |
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.
|
ComponentInfo |
getComponentInfo()
Allows to obtain various informations about components
|
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
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
id
protected static final String ALL_NAMES
protected static final String[][] ALL_PATHS
protected static ComponentInfo cmpInfo
public Authorization canHandle(Packet packet, XMPPResourceConnection conn)
canHandle
in interface XMPPImplIfc
packet
- conn
- Authorization
enum value or null. Null means the
plugin is simply not processing the packet. Authorization.AUTHORIZED
means
the plugin can process the packet, any other Authorization
enum value
means an error which has to be returned to the sender.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
int
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
- Element[]
valuepublic String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
String[][]
value is an array for element paths for which
the plugin offers processing capabilities. Each path is in form of a String array
in order to reduce parsing overhead.@Deprecated public String[] supElements()
supElements
in interface XMPPImplIfc
String[]
valueXMPPImplIfc.supElementNamePaths()
public String[] supNamespaces()
supNamespaces
in interface XMPPImplIfc
String[]
valuepublic tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
supStreamFeatures
in interface XMPPImplIfc
session
- Element[]
valuepublic Set<StanzaType> supTypes()
supTypes
in interface XMPPImplIfc
StanzaType[]
array of supported stanza types.public XMPPProcessor getInstance()
public void getStatistics(StatisticsList list)
getStatistics
in interface XMPPImplIfc
list
- public ComponentInfo getComponentInfo()
getComponentInfo
in interface XMPPImplIfc
@Deprecated public boolean isSupporting(String element, String ns)
isSupporting
in interface XMPPImplIfc
element
- ns
- boolean
valueCopyright © 2013 Tigase. All rights reserved.