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

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

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

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.pubsubSubscriptionappendAttribute

Popular methods of Subscription

  • <init>
    Constructs a representation of a subscription reply to the specified node and JID. The server will h
  • getNode
  • toXML
  • getJid
    Gets the JID the subscription is created for
  • getId
    Gets the subscription id
  • getState
    Gets the current subscription state.

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JCheckBox (javax.swing)
  • 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