Class CarbonExtension.Private
java.lang.Object
org.jivesoftware.smackx.carbons.packet.CarbonExtension.Private
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
- CarbonExtension
public static final class CarbonExtension.Private
extends Object
implements org.jivesoftware.smack.packet.ExtensionElement
Stanza extension indicating that a message may not be carbon-copied. Adding this
extension to any message will disallow that message from being copied.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTo(org.jivesoftware.smack.packet.Message message) Deprecated.static voidaddTo(org.jivesoftware.smack.packet.MessageBuilder messageBuilder) Marks a message "private", so that it will not be carbon-copied, by adding private packet extension to the message.toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
INSTANCE
-
ELEMENT
- See Also:
-
QNAME
-
-
Method Details
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
addTo
public static void addTo(org.jivesoftware.smack.packet.MessageBuilder messageBuilder) Marks a message "private", so that it will not be carbon-copied, by adding private packet extension to the message.- Parameters:
messageBuilder- the message to add the private extension to
-
addTo
Deprecated.useaddTo(MessageBuilder)instead.Marks a message "private", so that it will not be carbon-copied, by adding private packet extension to the message.- Parameters:
message- the message to add the private extension to
-
addTo(MessageBuilder)instead.