public enum GlassFishAdminInterface extends Enum<GlassFishAdminInterface>
Local GlassFish server administration interface type used to mark proper administration interface for individual GlassFish servers.
Enum Constant and Description |
---|
HTTP
GlassFish server administration interface is HTTP.
|
REST
GlassFish server administration interface is REST.
|
Modifier and Type | Field and Description |
---|---|
(package private) static String |
HTTP_STR
A
String representation of HTTP value. |
(package private) static String |
REST_STR
A
String representation of REST value. |
private static Map<String,GlassFishAdminInterface> |
stringValuesMap
Stored
String values for backward String
conversion. |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Convert
GlassFishAdminInterface value to String . |
static GlassFishAdminInterface |
toValue(String name)
Returns a
GlassFishAdminInterface with a value represented
by the specified String . |
static GlassFishAdminInterface |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlassFishAdminInterface[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlassFishAdminInterface REST
public static final GlassFishAdminInterface HTTP
static final String REST_STR
String
representation of REST value.static final String HTTP_STR
String
representation of HTTP value.private static final Map<String,GlassFishAdminInterface> stringValuesMap
String
values for backward String
conversion.public static GlassFishAdminInterface[] values()
for (GlassFishAdminInterface c : GlassFishAdminInterface.values()) System.out.println(c);
public static GlassFishAdminInterface 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 static GlassFishAdminInterface toValue(String name)
GlassFishAdminInterface
with a value represented
by the specified String
. The
GlassFishAdminInterface
returned represents existing value
only if specified String
matches any String
returned by toString
method. Otherwise null
value is returned.
name
- Value containing GlassFishAdminInterface
toString
representation.GlassFishAdminInterface
value represented
by String
or null
if value was
not recognized.public String toString()
GlassFishAdminInterface
value to String
.
toString
in class Enum<GlassFishAdminInterface>
String
representation of the value of this object.Copyright © 2013. All Rights Reserved.