Class BoBExtension

  • 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

    public class BoBExtension
    extends XHTMLExtension
    Bits of Binary extension element.
    See Also:
    XEP-0231: Bits of Binary
    • Constructor Summary

      Constructors 
      Constructor Description
      BoBExtension​(BoBHash bobHash, java.lang.String alt, java.lang.String paragraph)
      Bits of Binary extension constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BoBExtension from​(org.jivesoftware.smack.packet.Message message)  
      java.lang.String getAlt()
      Get the alt field.
      BoBHash getBoBHash()
      Get the BoB hash.
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Returns the XML representation of a XHTML extension according the specification.
      • 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
    • Constructor Detail

      • BoBExtension

        public BoBExtension​(BoBHash bobHash,
                            java.lang.String alt,
                            java.lang.String paragraph)
        Bits of Binary extension constructor.
        Parameters:
        bobHash - TODO javadoc me please
        alt - TODO javadoc me please
        paragraph - TODO javadoc me please
    • Method Detail

      • getBoBHash

        public BoBHash getBoBHash()
        Get the BoB hash.
        Returns:
        the BoB hash
      • getAlt

        public java.lang.String getAlt()
        Get the alt field.
        Returns:
        the alt field
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Description copied from class: XHTMLExtension
        Returns the XML representation of a XHTML extension according the specification. Usually the XML representation will be inside of a Message XML representation like in the following example:
         <message id="MlIpV-4" to="gato1@gato.home" from="gato3@gato.home/Smack">
             <subject>Any subject you want</subject>
             <body>This message contains something interesting.</body>
             <html xmlns="http://jabber.org/protocol/xhtml-im">
                 <body><p style='font-size:large'>This message contains something <em>interesting</em>.</p></body>
             </html>
         </message>
         
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
        Overrides:
        toXML in class XHTMLExtension
      • from

        public static BoBExtension from​(org.jivesoftware.smack.packet.Message message)