Class CarbonExtension.Private

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.FullyQualifiedElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlLangElement
    Enclosing class:
    CarbonExtension

    public static final class CarbonExtension.Private
    extends java.lang.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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void addTo​(org.jivesoftware.smack.packet.Message message)
      Deprecated.
      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.
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      java.lang.String toXML​(org.jivesoftware.smack.packet.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.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement

        getLanguage, getQName
    • Method Detail

      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElement
      • toXML

        public java.lang.String toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.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
        public static void addTo​(org.jivesoftware.smack.packet.Message message)
        Deprecated.
        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