1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Add javadoc about client set resourceparts

This commit is contained in:
Florian Schmaus 2017-01-20 10:21:23 +01:00
parent 4d7b9318ce
commit 4377e39b5f

View file

@ -576,14 +576,17 @@ public abstract class ConnectionConfiguration {
}
/**
* Set the resource to use.
* Set the resource we are requesting from the server.
* <p>
* If <code>resource</code> is <code>null</code>, then the server will automatically create a resource for the
* client. Default resource is "Smack".
* If <code>resource</code> is <code>null</code>, the default, then the server will automatically create a
* resource for the client. Note that XMPP clients only suggest this resource to the server. XMPP servers are
* allowed to ignore the client suggested resource and instead assign a completely different
* resource (see RFC 6120 § 7.7.1).
* </p>
*
* @param resource the resource to use.
* @return a reference to this builder.
* @see <a href="https://tools.ietf.org/html/rfc6120#section-7.7.1">RFC 6120 § 7.7.1</a>
*/
public B setResource(Resourcepart resource) {
this.resource = resource;
@ -591,7 +594,7 @@ public abstract class ConnectionConfiguration {
}
/**
* Set the resource to use.
* Set the resource we are requesting from the server.
*
* @param resource the non-null CharSequence to use a resource.
* @return a reference ot this builder.