Class CarbonExtension.Private
java.lang.Object
org.jivesoftware.smackx.carbons.packet.CarbonExtension.Private
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,XmlLangElement
- Enclosing class:
- CarbonExtension
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated.static void
addTo
(MessageBuilder messageBuilder) Marks a message "private", so that it will not be carbon-copied, by adding private packet extension to the message.Returns the root element name.Returns the root element XML namespace.toXML
(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
INSTANCE
-
ELEMENT
- See Also:
-
QNAME
-
-
Method Details
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-
addTo
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.