|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ReasonPacketExtension
public class ReasonPacketExtension
The reason element provides human or machine-readable information explaining what prompted the action of the encapsulating jingle element.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The name of the "content" element. |
static String |
NAMESPACE
The name space (or rather lack thereof ) that the reason element belongs to. |
static String |
TEXT_ELEMENT_NAME
The name of the text element. |
| Constructor Summary | |
|---|---|
ReasonPacketExtension(Reason reason,
String text,
org.jivesoftware.smack.packet.PacketExtension packetExtension)
Creates a new ReasonPacketExtension instance with the specified reason String. |
|
| Method Summary | |
|---|---|
String |
getElementName()
Returns the root element name. |
String |
getNamespace()
Returns the root element XML namespace. |
org.jivesoftware.smack.packet.PacketExtension |
getOtherExtension()
Returns an extra extension containing further info about this action or null if no such extension has been specified. |
Reason |
getReason()
Returns the reason string that this packet extension is transporting. |
String |
getText()
Returns human-readable information about the reason for the action or null if no such information is currently available. |
void |
setOtherExtension(org.jivesoftware.smack.packet.PacketExtension otherExtension)
Sets the extra extension containing further info about this action or null if no such extension has been specified. |
void |
setText(String text)
Sets the human-readable information about the reason for the action or null if no such information is currently available |
String |
toXML()
Returns the XML representation of the PacketExtension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NAMESPACE
public static final String ELEMENT_NAME
public static final String TEXT_ELEMENT_NAME
| Constructor Detail |
|---|
public ReasonPacketExtension(Reason reason,
String text,
org.jivesoftware.smack.packet.PacketExtension packetExtension)
reason - the reason string that we'd like to transport in this
packet extension, which may or may not be one of the static strings
defined here.text - an element providing human-readable information about the
reason for the action or null if no such information is
currently available.packetExtension - any other element that MAY be providing further
information or null if no such element has been specified.| Method Detail |
|---|
public Reason getReason()
public String getText()
public void setText(String text)
text - the human-readable information about the reason for the
action or null if no such information is currently availablepublic org.jivesoftware.smack.packet.PacketExtension getOtherExtension()
public void setOtherExtension(org.jivesoftware.smack.packet.PacketExtension otherExtension)
otherExtension - the extra extension containing further info about
this action or null if no such extension has been specifiedpublic String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionpublic String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtension
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||