Package org.jivesoftware.smackx.pubsub

Examples of org.jivesoftware.smackx.pubsub.ConfigureForm


    super("PubSub Test Case");
  }

  protected LeafNode getRandomPubnode(PubSubManager pubMgr, boolean persistItems, boolean deliverPayload) throws XMPPException
  {
    ConfigureForm form = new ConfigureForm(FormType.submit);
    form.setPersistentItems(persistItems);
    form.setDeliverPayloads(deliverPayload);
    form.setAccessModel(AccessModel.open);
    return (LeafNode)pubMgr.createNode("/test/Pubnode" + System.currentTimeMillis(), form);
  }
View Full Code Here


    {
      node = (LeafNode)pubMgr.getNode(nodeId);
    }
    catch (XMPPException e)
    {
      ConfigureForm form = new ConfigureForm(FormType.submit);
      form.setPersistentItems(persistItems);
      form.setDeliverPayloads(deliverPayload);
      form.setAccessModel(AccessModel.open);
      node = (LeafNode)pubMgr.createNode(nodeId, form);
    }
    return node;
  }
View Full Code Here

  protected PacketExtension createReturnExtension(String currentElement, String currentNamespace, Map<String, String> attMap, List<? extends PacketExtension> content)
  {
    if (content.size() == 0)
      return new ConfigurationEvent(attMap.get("node"));
    else
      return new ConfigurationEvent(attMap.get("node"), new ConfigureForm((DataForm)content.iterator().next()));
  }
View Full Code Here

   */
  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

    super("PubSub Test Case");
  }

  protected LeafNode getRandomPubnode(PubSubManager pubMgr, boolean persistItems, boolean deliverPayload) throws XMPPException
  {
    ConfigureForm form = new ConfigureForm(FormType.submit);
    form.setPersistentItems(persistItems);
    form.setDeliverPayloads(deliverPayload);
    form.setAccessModel(AccessModel.open);
    return (LeafNode)pubMgr.createNode("/test/Pubnode" + System.currentTimeMillis(), form);
  }
View Full Code Here

    {
      node = (LeafNode)pubMgr.getNode(nodeId);
    }
    catch (XMPPException e)
    {
      ConfigureForm form = new ConfigureForm(FormType.submit);
      form.setPersistentItems(persistItems);
      form.setDeliverPayloads(deliverPayload);
      form.setAccessModel(AccessModel.open);
      node = (LeafNode)pubMgr.createNode(nodeId, form);
    }
    return node;
  }
View Full Code Here

TOP

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

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.