public enum EndpointSource extends java.lang.Enum<EndpointSource>
EndpointSource
- The end-point source on secondary mail account creatoion.Enum Constant and Description |
---|
LOCALHOST
Mail/transport end-point is assumed to be localhost using defaults for protocol, port, etc.
|
NONE
No end-point source to fall-back to.
|
PRIMARY
Mail/transport end-point is assumed to be equal to the primary one.
|
Modifier and Type | Method and Description |
---|---|
static EndpointSource |
endpointSourceFor(java.lang.String endpointSource)
Gets the end-point source for given identifier.
|
java.lang.String |
getId()
Gets the identifier.
|
static EndpointSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EndpointSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointSource NONE
public static final EndpointSource PRIMARY
public static final EndpointSource LOCALHOST
public static EndpointSource[] values()
for (EndpointSource c : EndpointSource.values()) System.out.println(c);
public static EndpointSource 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 getId()
public static EndpointSource endpointSourceFor(java.lang.String endpointSource)
endpointSource
- The identifier