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<Element> |
getDiscoFeatures(JID from)
Returns features for top level disco info
|
Element |
getDiscoInfo(String node,
JID jid,
JID from)
Returns service discovery info for the component.
|
List<Element> |
getDiscoItems(String node,
JID jid,
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
Element getDiscoInfo(String node, JID jid, 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<Element> getDiscoItems(String node, JID jid, 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<Element> getDiscoFeatures(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 © 2004–2020 "Tigase, Inc.". All rights reserved.