public interface XMPPService extends ServerComponent
Modifier and Type | Field and Description |
---|---|
static String[] |
CMD_FEATURES
A convenience constant with component features related to ad-hoc commands.
|
static String[] |
DEF_FEATURES
A convenience constant with all stream features for service discovery.
|
static String |
INFO_XMLNS
A convenience constant with service discovery info xmlns string.
|
static String |
ITEMS_XMLNS
A convenience constant with service discovery items xmlns string.
|
Modifier and Type | Method and Description |
---|---|
List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Returns features for top level disco info
|
tigase.xml.Element |
getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Returns service discovery info for the component.
|
List<tigase.xml.Element> |
getDiscoItems(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Returns service discovery items for the component.
|
getComponentId, getComponentInfo, getName, initializationCompleted, isInitializationComplete, processPacket, release, setName
static final String INFO_XMLNS
static final String ITEMS_XMLNS
static final String[] DEF_FEATURES
static final String[] CMD_FEATURES
tigase.xml.Element getDiscoInfo(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
node
- is service discovery node for which the request is made. Is
normally null for the component top level request.jid
- is the jid to which the request has been made.from
- is the request sender address. Some service discovery information
is only meant for administrators.List<tigase.xml.Element> getDiscoItems(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
node
- is a service discovery node for which the request has been made.jid
- is the jid to which the request has been made.from
- is the request sender address. Some service discovery information
is only meant for administrators.List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
from
- a request sender address. Some service disco elements are meant
to be available only to system administrarors. The component is responsible to
check whether the sender is the component administrator and return results
appropriate.Copyright © 2016 "Tigase, Inc.". All rights reserved.