Class CarbonExtension.Private
- java.lang.Object
-
- org.jivesoftware.smackx.carbons.packet.CarbonExtension.Private
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- CarbonExtension
public static final class CarbonExtension.Private extends java.lang.Object implements 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 java.lang.String
ELEMENT
static CarbonExtension.Private
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
addTo(Message message)
Deprecated.useaddTo(MessageBuilder)
instead.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.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
INSTANCE
public static final CarbonExtension.Private INSTANCE
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public java.lang.String toXML(XmlEnvironment enclosingNamespace)
-
addTo
public 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.- Parameters:
messageBuilder
- the message to add the private extension to
-
addTo
@Deprecated public static void addTo(Message message)
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
-
-