Smack

org.jivesoftware.smackx.packet
Class AttentionExtension

java.lang.Object
  extended by org.jivesoftware.smackx.packet.AttentionExtension
All Implemented Interfaces:
PacketExtension

public class AttentionExtension
extends java.lang.Object
implements PacketExtension

A PacketExtension that implements XEP-0224: Attention This extension is expected to be added to message stanzas of type 'headline.' Please refer to the XEP for more implementation guidelines.

Author:
Guus der Kinderen, guus.der.kinderen@gmail.com
See Also:
XEP-0224: Attention

Nested Class Summary
static class AttentionExtension.Provider
          A PacketExtensionProvider for the AttentionExtension.
 
Field Summary
static java.lang.String ELEMENT_NAME
          The XML element name of an 'attention' extension.
static java.lang.String NAMESPACE
          The namespace that qualifies the XML element of an 'attention' extension.
 
Constructor Summary
AttentionExtension()
           
 
Method Summary
 java.lang.String getElementName()
          Returns the root element name.
 java.lang.String getNamespace()
          Returns the root element XML namespace.
 java.lang.String toXML()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final java.lang.String ELEMENT_NAME
The XML element name of an 'attention' extension.

See Also:
Constant Field Values

NAMESPACE

public static final java.lang.String NAMESPACE
The namespace that qualifies the XML element of an 'attention' extension.

See Also:
Constant Field Values
Constructor Detail

AttentionExtension

public AttentionExtension()
Method Detail

getElementName

public java.lang.String getElementName()
Description copied from interface: PacketExtension
Returns the root element name.

Specified by:
getElementName in interface PacketExtension
Returns:
the element name.

getNamespace

public java.lang.String getNamespace()
Description copied from interface: PacketExtension
Returns the root element XML namespace.

Specified by:
getNamespace in interface PacketExtension
Returns:
the namespace.

toXML

public java.lang.String toXML()
Description copied from interface: PacketExtension
Returns the XML representation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.