Codota Logo
Subscription.toXML
Code IndexAdd Codota to your IDE (free)

How to use
toXML
method
in
org.jivesoftware.smackx.pubsub.Subscription

Best Java code snippets using org.jivesoftware.smackx.pubsub.Subscription.toXML (Showing top 4 results out of 315)

  • Common ways to obtain Subscription
private void myMethod () {
Subscription s =
  • Codota IconPubSub pubSub;PubSubElementType elem;(Subscription) pubSub.getExtension(elem)
  • Smart code suggestions by Codota
}
origin: igniterealtime/Smack

  @Override
  public CharSequence toXML(String enclosingNamespace) {
    if ((items == null) || (items.size() == 0)) {
      return super.toXML(enclosingNamespace);
    }
    else {
      StringBuilder builder = new StringBuilder("<");
      builder.append(getElementName());

      if (getNode() != null) {
        builder.append(" node='");
        builder.append(getNode());
        builder.append('\'');
      }
      builder.append('>');

      for (Subscription item : items) {
        builder.append(item.toXML(null));
      }

      builder.append("</");
      builder.append(getElementName());
      builder.append('>');
      return builder.toString();
    }
  }
}
origin: org.igniterealtime.smack/smackx

builder.append(item.toXML());
origin: tiandawu/IotXmpp

builder.append(item.toXML());
origin: org.littleshoot/smack-xmpp-3-2-2

builder.append(item.toXML());
org.jivesoftware.smackx.pubsubSubscriptiontoXML

Popular methods of Subscription

  • <init>
    Construct a subscription change request to the specified state.
  • getNode
  • appendAttribute
  • getJid
    Gets the JID the subscription is created for.
  • getId
    Gets the subscription id
  • getState
    Gets the current subscription state.

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now