Codota Logo
ConnectionConfiguration.getResource
Code IndexAdd Codota to your IDE (free)

How to use
getResource
method
in
org.jivesoftware.smack.ConnectionConfiguration

Best Java code snippets using org.jivesoftware.smack.ConnectionConfiguration.getResource (Showing top 8 results out of 315)

  • Common ways to obtain ConnectionConfiguration
private void myMethod () {
ConnectionConfiguration c =
  • Codota IconString host;String serviceName;new ConnectionConfiguration(host, port, serviceName)
  • Codota IconString host;new ConnectionConfiguration(host, port)
  • Codota IconString serviceName;new ConnectionConfiguration(serviceName)
  • Smart code suggestions by Codota
}
origin: igniterealtime/Smack

/**
 * Same as {@link #login(CharSequence, String, Resourcepart)}, but takes the resource from the connection
 * configuration.
 *
 * @param username
 * @param password
 * @throws XMPPException
 * @throws SmackException
 * @throws IOException
 * @throws InterruptedException
 * @see #login
 */
public synchronized void login(CharSequence username, String password) throws XMPPException, SmackException,
        IOException, InterruptedException {
  login(username, password, config.getResource());
}
origin: igniterealtime/Smack

private EntityFullJid getUserJid() {
  try {
    return JidCreate.entityFullFrom(config.getUsername()
            + "@"
            + config.getXMPPServiceDomain()
            + "/"
            + (config.getResource() != null ? config.getResource() : "Test"));
  }
  catch (XmppStringprepException e) {
    throw new IllegalStateException(e);
  }
}
origin: igniterealtime/Smack

Resourcepart resource = usedResource != null ? usedResource : config.getResource();
login(username, password, resource);
origin: org.igniterealtime.smack/smack-core

/**
 * Same as {@link #login(CharSequence, String, Resourcepart)}, but takes the resource from the connection
 * configuration.
 *
 * @param username
 * @param password
 * @throws XMPPException
 * @throws SmackException
 * @throws IOException
 * @throws InterruptedException
 * @see #login
 */
public synchronized void login(CharSequence username, String password) throws XMPPException, SmackException,
        IOException, InterruptedException {
  login(username, password, config.getResource());
}
origin: org.igniterealtime.smack/smack-core

Resourcepart resource = usedResource != null ? usedResource : config.getResource();
login(username, password, resource);
origin: tiandawu/IotXmpp

config.getResource());
origin: org.igniterealtime.smack/smack

config.getResource());
origin: org.littleshoot/smack-xmpp-3-2-2

config.getResource());
org.jivesoftware.smackConnectionConfigurationgetResource

Javadoc

Returns the resource to use when trying to reconnect to the server.

Popular methods of ConnectionConfiguration

  • <init>
  • setSecurityMode
    Sets the TLS security mode used when making the connection. By default, the mode is SecurityMode#ena
  • setCompressionEnabled
    Sets if the connection is going to use stream compression. Stream compression will be requested afte
  • setDebuggerEnabled
    Sets if the new connection about to be establish is going to be debugged. By default the value of Co
  • setReconnectionAllowed
    Sets if the reconnection mechanism is allowed to be used. By default reconnection is allowed.
  • setSASLAuthenticationEnabled
    Sets whether the client will use SASL authentication when logging into the server. If SASL authentic
  • setRosterLoadedAtLogin
    Sets if the roster will be loaded from the server when logging in. This is the common behaviour for
  • getUsername
    Returns the username to use when trying to reconnect to the server.
  • isCompressionEnabled
    Returns true if the connection is going to use stream compression. Stream compression will be reques
  • setSendPresence
    Sets if an initial available presence will be sent to the server. By default an available presence w
  • setSocketFactory
    Sets the socket factory used to create new xmppConnection sockets. This is useful when connecting th
  • getCallbackHandler
    Returns a CallbackHandler to obtain information, such as the password or principal information durin
  • setSocketFactory,
  • getCallbackHandler,
  • getPassword,
  • getSecurityMode,
  • isSendPresence,
  • setCallbackHandler,
  • getHost,
  • getPort,
  • getServiceName

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (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
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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