mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Add javadoc about client set resourceparts
This commit is contained in:
parent
4d7b9318ce
commit
4377e39b5f
1 changed files with 7 additions and 4 deletions
|
@ -576,14 +576,17 @@ public abstract class ConnectionConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the resource to use.
|
* Set the resource we are requesting from the server.
|
||||||
* <p>
|
* <p>
|
||||||
* If <code>resource</code> is <code>null</code>, then the server will automatically create a resource for the
|
* If <code>resource</code> is <code>null</code>, the default, then the server will automatically create a
|
||||||
* client. Default resource is "Smack".
|
* 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>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param resource the resource to use.
|
* @param resource the resource to use.
|
||||||
* @return a reference to this builder.
|
* @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) {
|
public B setResource(Resourcepart resource) {
|
||||||
this.resource = 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.
|
* @param resource the non-null CharSequence to use a resource.
|
||||||
* @return a reference ot this builder.
|
* @return a reference ot this builder.
|
||||||
|
|
Loading…
Reference in a new issue