@ThreadSafe public final class DomainUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
joinLabels(Collection<String> labels)
Joins labels to a domain name or rule pattern.
|
static String |
joinLabels(String[] labels)
Joins labels to a domain name or rule pattern.
|
static String[] |
splitLabels(String domain)
Splits a domain or pattern into its labels.
|
public static String[] splitLabels(String domain)
domain
- the domain name or rule pattern, null returns nullpublic static String joinLabels(Collection<String> labels)
labels
- the domain or rule labels, not nullCopyright © 2016. All rights reserved.