Package org.jivesoftware.smackx.pubsub

Examples of org.jivesoftware.smackx.pubsub.FormNode


public class FormNodeProvider extends EmbeddedExtensionProvider
{
  @Override
  protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attributeMap, List<? extends PacketExtension> content)
  {
        return new FormNode(FormNodeType.valueOfFromElementName(currentElement, currentNamespace), attributeMap.get("node"), new Form((DataForm)content.iterator().next()));
  }
View Full Code Here


   * @param elem
   * @return The configuration form
   */
  public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
  {
    FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
    Form formReply = config.getForm();
    return new ConfigureForm(formReply);

  }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smackx.pubsub.FormNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.