Presence.getTo
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.jivesoftware.smack.packet.Presence.getTo(Showing top 8 results out of 315)

origin: igniterealtime/Spark

/**
 * Update the current availability of the user
 *
 * @param presence the current presence of the user.
 */
public void changePresence(Presence presence) {
  // Fire Presence Listeners
  for (PresenceListener listener : new ArrayList<>( this.presenceListeners )) {
    listener.presenceChanged(presence);
  }
  // Do NOT  send presence if disconnected.
  if (SparkManager.getConnection().isConnected()) {
    // Send Presence Packet
    try
    {
      SparkManager.getConnection().sendStanza(presence);
    }
    catch ( SmackException.NotConnectedException e )
    {
      Log.error( "Unable to send presence to " + presence.getTo(), e );
    }
  }
}
origin: igniterealtime/Spark

Log.warning( "Unable to send stanza to " + p.getTo(), e );
origin: org.igniterealtime.smack/smack

  buf.append(" id=\"").append(getPacketID()).append("\"");
if (getTo() != null) {
  buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\"");
origin: igniterealtime/Spark

Log.warning( "Unable to send presence reply to " + reply.getTo(), e );
origin: org.igniterealtime.smack/smack-extensions

new AndFilter(FromMatchesFilter.createFull(joinPresence.getTo()), new StanzaIdFilter(joinPresence), PresenceTypeFilter.ERROR)
origin: igniterealtime/Spark

Log.warning( "Unable to unsubscribe from " + unsub.getTo(), e1 );
origin: jivesoftware/smack

  buf.append(" id=\"").append(getPacketID()).append("\"");
if (getTo() != null) {
  buf.append(" to=\"").append(StringUtils.escapeForXML(getTo())).append("\"");
origin: org.igniterealtime.smack/smack-extensions

new AndFilter(FromMatchesFilter.createFull(joinPresence.getTo()), new StanzaIdFilter(joinPresence), PresenceTypeFilter.ERROR)
org.jivesoftware.smack.packetPresencegetTo

Popular methods of Presence

  • <init>
    Creates a new presence with the given type and using the given XMPP address as recipient.
  • getFrom
  • getType
    Returns the type of this presence packet.
  • setTo
  • isAvailable
    Returns true if the Type is available (online) and false if the user is unavailable (offline), or if
  • getMode
    Returns the mode of the presence update.
  • setStatus
    Sets the status message of the presence update. The status is free-form text describing a user's pre
  • addExtension
  • getPriority
    Returns the priority of the presence, or Integer.MIN_VALUE if no priority has been set.
  • setMode
    Sets the mode of the presence update. A null presence mode value is interpreted to be the same thing
  • getStatus
    Returns the status message of the presence update, or null if there is not a status. The status is f
  • setFrom
  • getStatus,
  • setFrom,
  • getError,
  • getExtension,
  • setPriority,
  • setType,
  • toXML,
  • clone,
  • getExtensionsXML

Popular classes and methods

  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)