Package org.apache.catalina.valves
Enum AbstractAccessLogValve.ElapsedTimeElement.Style
- java.lang.Object
-
- java.lang.Enum<AbstractAccessLogValve.ElapsedTimeElement.Style>
-
- org.apache.catalina.valves.AbstractAccessLogValve.ElapsedTimeElement.Style
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractAccessLogValve.ElapsedTimeElement.Style>
- Enclosing class:
- AbstractAccessLogValve.ElapsedTimeElement
public static enum AbstractAccessLogValve.ElapsedTimeElement.Style extends java.lang.Enum<AbstractAccessLogValve.ElapsedTimeElement.Style>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MICROSECONDS
MILLISECONDS
NANOSECONDS
SECONDS
SECONDS_FRACTIONAL
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
append(java.io.CharArrayWriter buf, long time)
Append the time to the buffer in the appropriate format.static AbstractAccessLogValve.ElapsedTimeElement.Style
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractAccessLogValve.ElapsedTimeElement.Style[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECONDS
public static final AbstractAccessLogValve.ElapsedTimeElement.Style SECONDS
-
SECONDS_FRACTIONAL
public static final AbstractAccessLogValve.ElapsedTimeElement.Style SECONDS_FRACTIONAL
-
MILLISECONDS
public static final AbstractAccessLogValve.ElapsedTimeElement.Style MILLISECONDS
-
MICROSECONDS
public static final AbstractAccessLogValve.ElapsedTimeElement.Style MICROSECONDS
-
NANOSECONDS
public static final AbstractAccessLogValve.ElapsedTimeElement.Style NANOSECONDS
-
-
Method Detail
-
values
public static AbstractAccessLogValve.ElapsedTimeElement.Style[] 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 (AbstractAccessLogValve.ElapsedTimeElement.Style c : AbstractAccessLogValve.ElapsedTimeElement.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractAccessLogValve.ElapsedTimeElement.Style 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 namejava.lang.NullPointerException
- if the argument is null
-
append
public abstract void append(java.io.CharArrayWriter buf, long time)
Append the time to the buffer in the appropriate format.- Parameters:
buf
- The buffer to append to.time
- The time to log in nanoseconds.
-
-