|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.disco.DiscoItem
public class DiscoItem
An item is associated with an XMPP Entity, usually thought of a children of the parent entity and normally are addressable as a JID.
An item associated with an entity may not be addressable as a JID. In order to handle such items, Service Discovery uses an optional 'node' attribute that supplements the 'jid' attribute.
Constructor Summary | |
---|---|
DiscoItem(org.dom4j.Element element)
|
|
DiscoItem(JID jid,
String name,
String node,
String action)
Creates a new DiscoItem instance. |
Method Summary | |
---|---|
String |
getAction()
Returns the action (i.e. |
org.dom4j.Element |
getElement()
Returns a dom4j element that represents this DiscoItem object. |
JID |
getJID()
Returns the entity's ID. |
String |
getName()
Returns the entity's name. |
String |
getNode()
Returns the node attribute that supplements the 'jid' attribute. |
String |
getUID()
Returns a unique identifier for this Result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoItem(org.dom4j.Element element)
public DiscoItem(JID jid, String name, String node, String action)
jid
- specifies the Jabber ID of the item "owner" or location
(required).name
- specifies a natural-language name for the item (can be null).node
- specifies the particular node associated with the JID of the
item "owner" or location (can be null).action
- specifies the action to be taken for the item.
IllegalArgumentException
- If a required parameter was null, or if the supplied 'action'
parameter has another value than 'null', "update" or
"remove".Method Detail |
---|
public JID getJID()
Returns the entity's ID.
public String getNode()
Returns the node attribute that supplements the 'jid' attribute. A node is merely something that is associated with a JID and for which the JID can provide information.
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
public String getName()
Returns the entity's name. The entity's name specifies in natural-language the name for the item.
public String getAction()
Returns the action (i.e. update or remove) that indicates what must be done with this item or null if none. An "update" action requests the server to create or update the item. Whilst a "remove" action requests to remove the item.
public org.dom4j.Element getElement()
public String getUID()
Result
(...) the UIDs are unique in the context of all possible members of the full result set. Each UID MAY be based on part of the content of its associated item (...) or on an internal table index. Another possible method is to serialize the XML of the item and then hash it to generate the UID. Note: The requesting entity MUST treat all UIDs as opaque.
getUID
in interface Result
|
Openfire 3.4.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |