Package org.jivesoftware.smackx.pubsub.packet

Examples of org.jivesoftware.smackx.pubsub.packet.PubSub


  public ConfigureForm getDefaultConfiguration()
    throws XMPPException
  {
    // Errors will cause exceptions in getReply, so it only returns
    // on success.
    PubSub reply = (PubSub)sendPubsubPacket(Type.GET, new NodeExtension(PubSubElementType.DEFAULT), PubSubElementType.DEFAULT.getNamespace());
    return NodeUtils.getFormFromPacket(reply, PubSubElementType.DEFAULT);
  }
View Full Code Here


    return createPubsubPacket(to, type, ext, null);
  }
 
  static PubSub createPubsubPacket(String to, Type type, PacketExtension ext, PubSubNamespace ns)
  {
    PubSub request = new PubSub();
    request.setTo(to);
    request.setType(type);
   
    if (ns != null)
    {
      request.setPubSubNamespace(ns);
    }
    request.addExtension(ext);
   
    return request;
  }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smackx.pubsub.packet.PubSub

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.