Class NoCopyHint
- java.lang.Object
-
- org.jivesoftware.smackx.hints.element.MessageProcessingHint
-
- org.jivesoftware.smackx.hints.element.NoCopyHint
-
- All Implemented Interfaces:
Element,ExtensionElement,FullyQualifiedElement,NamedElement,XmlLangElement
public final class NoCopyHint extends MessageProcessingHint
A "no copy" hint. Messages with this hint should not be copied to addresses other than the one to which it is addressed.- See Also:
- XEP-0344 ยง 4.3 No copies
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENTstatic NoCopyHintINSTANCE-
Fields inherited from class org.jivesoftware.smackx.hints.element.MessageProcessingHint
NAMESPACE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoCopyHintfrom(Message message)java.lang.StringgetElementName()Returns the root element name.MessageProcessingHintTypegetHintType()static booleanhasHint(Message message)static voidset(Message message)java.lang.StringtoXML(XmlEnvironment enclosingNamespace)-
Methods inherited from class org.jivesoftware.smackx.hints.element.MessageProcessingHint
getNamespace
-
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 NoCopyHint 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:NamedElementReturns the root element name.- Returns:
- the element name.
-
toXML
public java.lang.String toXML(XmlEnvironment enclosingNamespace)
-
getHintType
public MessageProcessingHintType getHintType()
- Specified by:
getHintTypein classMessageProcessingHint
-
from
public static NoCopyHint from(Message message)
-
-