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
    Modifier and Type
    Field
    Description
    static final String
     
     
    static final QName
     
  • Method Summary

    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.
     
     
    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.XmlElement

    getLanguage, getQName
  • Field Details

  • Method Details

    • getElementName

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

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

      public 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