Package rocks.xmpp.extensions.nick.model
Class Nickname
- java.lang.Object
-
- rocks.xmpp.extensions.nick.model.Nickname
-
public final class Nickname extends Object
The implementation of the<nick/>
element in thehttp://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.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
- See Also:
- XEP-0172: User Nickname, XML Schema
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/nick- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Nickname
public Nickname(String value)
Creates a nick name.- Parameters:
value
- The actual nick name.
-
-