public final class RosterDelimiter
extends java.lang.Object
The implementation of the <roster/>
element in the roster:delimiter
namespace.
It allows to store a roster group delimiter in the private storage, in order to display nested roster groups.
This class is immutable.Therefore, the delimiter SHOULD contain multiple characters in order to avoid inconveniencing the user, but single-character delimiters MUST be honored by the client. The exception is if the delimiter is a single alphanumeric character (a-z, A-Z, 0-9); in this case compliant clients MUST treat the situation as if nesting were disabled, to avoid malicious use of this element by setting ‘e’ or ‘m’ or some other common single character as a delimiter.
A compliant client SHOULD ask for the nested delimiter before requesting the user’s roster, in order to know whether or not to parse the roster ‘group’ fields accordingly. If there is no delimiter stored, a client MAY set a delimiter but MUST either prompt the user for a delimiter, or use a user-configurable default.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
roster:delimiter
|
Modifier and Type | Method and Description |
---|---|
static RosterDelimiter |
empty() |
java.lang.String |
getRosterDelimiter()
Gets the roster delimiter.
|
static RosterDelimiter |
of(java.lang.String rosterDelimiter) |
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
roster:delimiter
public static RosterDelimiter of(java.lang.String rosterDelimiter)
public static RosterDelimiter empty()
public final java.lang.String getRosterDelimiter()
Gets the roster delimiter.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.