public enum DomainPreference extends java.lang.Enum<DomainPreference>
- PREFERWWW: domain.com and www.domain.com should be associated
and www.domain.com is preferred
- PREFERNOWWW: domain.com and www.domain.com should be associated
domain.com is preferred
- NONE: there should be no association
| Enum Constant and Description |
|---|
NONE |
PREFER_NO_WWW |
PREFER_WWW |
| Modifier and Type | Method and Description |
|---|---|
static DomainPreference |
fromString(java.lang.String value)
Parse a string and return a domain preference.
|
static DomainPreference |
getDefault()
Get the default value for the domain preference.
|
java.lang.String |
toString()
Returns the string representation of the Domain Preference.
|
static DomainPreference |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DomainPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DomainPreference NONE
public static final DomainPreference PREFER_WWW
public static final DomainPreference PREFER_NO_WWW
public static DomainPreference[] values()
for (DomainPreference c : DomainPreference.values()) System.out.println(c);
public static DomainPreference valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<DomainPreference>public static DomainPreference getDefault()
public static DomainPreference fromString(java.lang.String value) throws java.lang.IllegalArgumentException
value - a string representing a domain preferencejava.lang.IllegalArgumentException - if the parameter is not a valid
DomainPreference string