public enum DomainPreference extends 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(String value)
Parse a string and return a domain preference.
|
static DomainPreference |
getDefault()
Get the default value for the domain preference.
|
String |
toString()
Returns the string representation of the Domain Preference.
|
static DomainPreference |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<DomainPreference>public static DomainPreference getDefault()
public static DomainPreference fromString(String value) throws IllegalArgumentException
value - a string representing a domain preferenceIllegalArgumentException - if the parameter is not a valid
DomainPreference stringCopyright © 2012. All Rights Reserved.