public class JabberIqRoster extends XMPPProcessor implements XMPPProcessorIfc, XMPPStopListenerIfc
JabberIqRoster
implements part of RFC-3921 -
XMPP Instant Messaging specification describing roster management.
7. Roster Management
Created: Tue Feb 21 17:42:53 2006Modifier and Type | Field and Description |
---|---|
static String |
ANON
Field description
|
protected RosterAbstract |
roster_util
Field description
|
ALL_NAMES, ALL_PATHS, cmpInfo
CLIENT_XMLNS
Constructor and Description |
---|
JabberIqRoster() |
Modifier and Type | Method and Description |
---|---|
int |
concurrentQueuesNo()
Method description
|
protected static void |
dynamicGetRequest(Packet packet,
XMPPResourceConnection session,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
protected static void |
dynamicSetRequest(Packet packet,
XMPPResourceConnection session,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
static String[] |
getItemGroups(tigase.xml.Element item)
Method description
|
protected RosterAbstract |
getRosterUtil()
Method description
|
String |
id()
Method description
|
void |
process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
protected void |
processGetRequest(Packet packet,
XMPPResourceConnection session,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
protected void |
processSetRequest(Packet packet,
XMPPResourceConnection session,
Queue<Packet> results,
Map<String,Object> settings)
Method description
|
void |
stopped(XMPPResourceConnection session,
Queue<Packet> results,
Map<String,Object> settings)
stopped method is called when user disconnects or logs-out. |
tigase.xml.Element[] |
supDiscoFeatures(XMPPResourceConnection session)
Method description
|
String[][] |
supElementNamePaths()
Method description
|
String[] |
supNamespaces()
Method description
|
tigase.xml.Element[] |
supStreamFeatures(XMPPResourceConnection session)
Method description
|
protected void |
updateHash(XMPPResourceConnection session,
Map<String,Object> settings)
Method description
|
canHandle, compareTo, concurrentThreadsPerQueue, getComponentInfo, getInstance, getStatistics, init, isSupporting, supElements, supTypes, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canHandle, concurrentThreadsPerQueue, getComponentInfo, getStatistics, init, isSupporting, supElements, supTypes
compareTo
public static final String ANON
protected RosterAbstract roster_util
public static String[] getItemGroups(tigase.xml.Element item)
item
- protected static void dynamicGetRequest(Packet packet, XMPPResourceConnection session, Queue<Packet> results, Map<String,Object> settings) throws NotAuthorizedException
packet
- session
- results
- settings
- NotAuthorizedException
protected static void dynamicSetRequest(Packet packet, XMPPResourceConnection session, Queue<Packet> results, Map<String,Object> settings)
packet
- session
- results
- settings
- public int concurrentQueuesNo()
concurrentQueuesNo
in interface XMPPImplIfc
concurrentQueuesNo
in class XMPPProcessor
public String id()
id
in interface XMPPImplIfc
String
valuepublic void process(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String,Object> settings) throws XMPPException
process
in interface XMPPProcessorIfc
packet
- session
- repo
- results
- settings
- XMPPException
public void stopped(XMPPResourceConnection session, Queue<Packet> results, Map<String,Object> settings)
stopped
method is called when user disconnects or logs-out.stopped
in interface XMPPStopListenerIfc
session
- a XMPPResourceConnection
valueresults
- settings
- public tigase.xml.Element[] supDiscoFeatures(XMPPResourceConnection session)
supDiscoFeatures
in interface XMPPImplIfc
supDiscoFeatures
in class XMPPProcessor
session
- Element[]
valuepublic String[][] supElementNamePaths()
supElementNamePaths
in interface XMPPImplIfc
supElementNamePaths
in class XMPPProcessor
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.public String[] supNamespaces()
supNamespaces
in interface XMPPImplIfc
supNamespaces
in class XMPPProcessor
String[]
valuepublic tigase.xml.Element[] supStreamFeatures(XMPPResourceConnection session)
supStreamFeatures
in interface XMPPImplIfc
supStreamFeatures
in class XMPPProcessor
session
- Element[]
valueprotected RosterAbstract getRosterUtil()
protected void updateHash(XMPPResourceConnection session, Map<String,Object> settings) throws NotAuthorizedException, TigaseDBException
session
- settings
- NotAuthorizedException
TigaseDBException
protected void processGetRequest(Packet packet, XMPPResourceConnection session, Queue<Packet> results, Map<String,Object> settings) throws NotAuthorizedException, TigaseDBException
packet
- session
- results
- settings
- NotAuthorizedException
TigaseDBException
protected void processSetRequest(Packet packet, XMPPResourceConnection session, Queue<Packet> results, Map<String,Object> settings) throws XMPPException, NotAuthorizedException, TigaseDBException
packet
- session
- results
- settings
- NotAuthorizedException
TigaseDBException
XMPPException
Copyright © 2013 Tigase. All rights reserved.