Tabnine Logo
Subscription.getNode
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: igniterealtime/Smack

@Override
public XmlStringBuilder toXML(String enclosingNamespace) {
  XmlStringBuilder builder = new XmlStringBuilder(this);
  builder.attribute("jid", jid);
  builder.optAttribute("node", getNode());
  builder.optAttribute("subid", id);
  builder.optAttribute("subscription", state.toString());
  builder.closeEmptyElement();
  return builder;
}
origin: org.littleshoot/smack-xmpp-3-2-2

public String toXML()
{
  StringBuilder builder = new StringBuilder("<subscription");
  appendAttribute(builder, "jid", jid);
  
  if (getNode() != null)
    appendAttribute(builder, "node", getNode());
  
  if (id != null)
    appendAttribute(builder, "subid", id);
  
  if (state != null)
    appendAttribute(builder, "subscription", state.toString());
  
  builder.append("/>");
  return builder.toString();
}
origin: org.igniterealtime.smack/smackx

public String toXML()
{
  StringBuilder builder = new StringBuilder("<subscription");
  appendAttribute(builder, "jid", jid);
  
  if (getNode() != null)
    appendAttribute(builder, "node", getNode());
  
  if (id != null)
    appendAttribute(builder, "subid", id);
  
  if (state != null)
    appendAttribute(builder, "subscription", state.toString());
  
  builder.append("/>");
  return builder.toString();
}
origin: tiandawu/IotXmpp

public String toXML()
{
  StringBuilder builder = new StringBuilder("<subscription");
  appendAttribute(builder, "jid", jid);
  
  if (getNode() != null)
    appendAttribute(builder, "node", getNode());
  
  if (id != null)
    appendAttribute(builder, "subid", id);
  
  if (state != null)
    appendAttribute(builder, "subscription", state.toString());
  
  builder.append("/>");
  return builder.toString();
}
org.jivesoftware.smackx.pubsubSubscriptiongetNode

Popular methods of Subscription

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now