Class FormNode

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

    public class FormNode
    extends NodeExtension
    Generic stanza extension which represents any PubSub form that is parsed from the incoming stream or being sent out to the server. Form types are defined in FormNodeType.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addXml​(org.jivesoftware.smack.util.XmlStringBuilder xml)  
      DataForm getForm()
      Get the Form that is to be sent, or was retrieved from the server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
    • Constructor Detail

      • FormNode

        public FormNode​(FormNodeType formType,
                        DataForm submitForm)
        Create a FormNode which contains the specified form.
        Parameters:
        formType - The type of form being sent
        submitForm - The form
      • FormNode

        public FormNode​(FormNodeType formType,
                        java.lang.String nodeId,
                        DataForm submitForm)
        Create a FormNode which contains the specified form, which is associated with the specified node.
        Parameters:
        formType - The type of form being sent
        nodeId - The node the form is associated with
        submitForm - The form
    • Method Detail

      • getForm

        public DataForm getForm()
        Get the Form that is to be sent, or was retrieved from the server.
        Returns:
        The form
      • addXml

        protected void addXml​(org.jivesoftware.smack.util.XmlStringBuilder xml)
        Overrides:
        addXml in class NodeExtension