org.directwebremoting.impl
Enum AccessLogLevel
java.lang.Object
java.lang.Enum<AccessLogLevel>
org.directwebremoting.impl.AccessLogLevel
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AccessLogLevel>
public enum AccessLogLevel
- extends java.lang.Enum<AccessLogLevel>
- Author:
- David Marginian [david at butterdev dot com].
Represent the accessLogLevel's that can be set as init-params
on the DWR Servlet (see DefaultRemoter). Each type contains a name
and a hierarchy. The hierarchy is number value (byte) that is used
to determine what/when to log based on the accessLogLevel.
Method Summary |
java.lang.String |
description()
|
static AccessLogLevel |
getValue(java.lang.String accessLogLevelString,
boolean debug)
This is a safe valueOf method. |
byte |
hierarchy()
|
static AccessLogLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AccessLogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CALL
public static final AccessLogLevel CALL
EXCEPTION
public static final AccessLogLevel EXCEPTION
RUNTIMEEXCEPTION
public static final AccessLogLevel RUNTIMEEXCEPTION
ERROR
public static final AccessLogLevel ERROR
OFF
public static final AccessLogLevel OFF
values
public static AccessLogLevel[] 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 (AccessLogLevel c : AccessLogLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AccessLogLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getValue
public static AccessLogLevel getValue(java.lang.String accessLogLevelString,
boolean debug)
- This is a safe valueOf method. Since we cannot override valueOf this method
should be used to retrieve an AccessLogLevel based on a String value. This method
will always return an AccessLogLevel. If accessLogLevelString is not valid a default
of OFF will be returned unless we are in debug mode when EXCEPTION will be returned.
- Parameters:
accessLogLevelString
- debug
- - are we in debug mode
- Returns:
- AccessLogLevel
description
public java.lang.String description()
hierarchy
public byte hierarchy()