Package org.jboss.as.domain.http.server
Enum ConsoleMode
- java.lang.Object
-
- java.lang.Enum<ConsoleMode>
-
- org.jboss.as.domain.http.server.ConsoleMode
-
- All Implemented Interfaces:
Serializable,Comparable<ConsoleMode>
public enum ConsoleMode extends Enum<ConsoleMode>
Different modes for showing the admin console- Author:
- Kabir Khan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN_ONLYIf an attempt is made to go to the console show an error saying the server/host is in admin-only modeCONSOLEShow the console normallyNO_CONSOLEIf an attempt is made to go to the console a 404 is shownSLAVE_HCIf an attempt is made to go to the console show an error saying the host is a Secondary Host
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ClassLoadergetClassLoader(org.jboss.modules.ModuleLoader moduleLoader, String module, String slot)booleanhasConsole()Returns whether the console is displayed or notstatic ConsoleModevalueOf(String name)Returns the enum constant of this type with the specified name.static ConsoleMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSOLE
public static final ConsoleMode CONSOLE
Show the console normally
-
SLAVE_HC
public static final ConsoleMode SLAVE_HC
If an attempt is made to go to the console show an error saying the host is a Secondary Host
-
ADMIN_ONLY
public static final ConsoleMode ADMIN_ONLY
If an attempt is made to go to the console show an error saying the server/host is in admin-only mode
-
NO_CONSOLE
public static final ConsoleMode NO_CONSOLE
If an attempt is made to go to the console a 404 is shown
-
-
Method Detail
-
values
public static ConsoleMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConsoleMode c : ConsoleMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsoleMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
hasConsole
public boolean hasConsole()
Returns whether the console is displayed or not
-
getClassLoader
protected static ClassLoader getClassLoader(org.jboss.modules.ModuleLoader moduleLoader, String module, String slot) throws org.jboss.modules.ModuleLoadException
- Throws:
org.jboss.modules.ModuleLoadException
-
-