public final class Nickname
extends java.lang.Object
The implementation of the <nick/>
element in the http://jabber.org/protocol/nick
namespace.
A nickname is a global, memorable (but not necessarily unique) friendly or informal name chosen by the owner of a bare JID
<localpart@domain.tld>
for the purpose of associating a distinctive mapping between the person’s unique JID and non-unique nickname.
This class is immutable.In general, a user SHOULD include his or her nickname when establishing initial communication with a contact or group of contacts (i.e., the user has never been in communication with and does not have a prior relationship with the contact or group of contacts). Appropriate use cases therefore include:
- Presence subscription requests
- Message exchange
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
|
Constructor and Description |
---|
Nickname(java.lang.String value)
Creates a nick name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Gets the nick name.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
Copyright © 2014–2019 XMPP.rocks. All rights reserved.