public final class RosterDelimiter extends Object
<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 String |
NAMESPACE
roster:delimiter
|
| Modifier and Type | Method and Description |
|---|---|
static RosterDelimiter |
empty() |
String |
getRosterDelimiter()
Gets the roster delimiter.
|
static RosterDelimiter |
of(String rosterDelimiter) |
String |
toString() |
public static final String NAMESPACE
public static RosterDelimiter of(String rosterDelimiter)
public static RosterDelimiter empty()
public final String getRosterDelimiter()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.