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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.static voidaddTo(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, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
INSTANCE
-
ELEMENT
- See Also:
-
QNAME
-
-
Method Details
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein 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.