public class MessageCorrectionExtension
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML element name of this extension.
|
static java.lang.String |
ID_ATTRIBUTE_NAME
Name of the attribute that specifies the ID of the message
being corrected.
|
static java.lang.String |
NAMESPACE
The XMPP namespace that this extension belongs to.
|
static java.lang.String |
SWIFT_NAMESPACE
The XMPP namespace that Swift IM use to send message corrections.
|
Constructor and Description |
---|
MessageCorrectionExtension(java.lang.String correctedMessageUID)
Creates a new message correction extension that corrects the
message specified by the passed ID.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCorrectedMessageUID()
Returns the correctedMessageUID The UID of the message being corrected.
|
java.lang.String |
getElementName()
Returns the XML element name of this extension.
|
java.lang.String |
getNamespace()
Returns the XML namespace this extension belongs to.
|
void |
setCorrectedMessageUID(java.lang.String correctedMessageUID)
Sets the UID of the message being corrected.
|
java.lang.String |
toXML()
Construct an XML element representing this extension;
has the form '
|
public static final java.lang.String NAMESPACE
public static final java.lang.String SWIFT_NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ID_ATTRIBUTE_NAME
public MessageCorrectionExtension(java.lang.String correctedMessageUID)
correctedMessageUID
- The ID of the message being corrected.public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getCorrectedMessageUID()
public void setCorrectedMessageUID(java.lang.String correctedMessageUID)
correctedMessageUID
- The UID of the message being corrected.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.