Package io.dropwizard.logging.json
Enum AccessAttribute
- java.lang.Object
-
- java.lang.Enum<AccessAttribute>
-
- io.dropwizard.logging.json.AccessAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessAttribute>
public enum AccessAttribute extends Enum<AccessAttribute>
Represents access logging attributes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_LENGTH
LOCAL_PORT
METHOD
PATH_QUERY
PROTOCOL
REMOTE_ADDRESS
REMOTE_HOST
REMOTE_USER
REQUEST_CONTENT
REQUEST_PARAMETERS
REQUEST_TIME
REQUEST_URI
REQUEST_URL
RESPONSE_CONTENT
SERVER_NAME
STATUS_CODE
TIMESTAMP
USER_AGENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTENT_LENGTH
public static final AccessAttribute CONTENT_LENGTH
-
METHOD
public static final AccessAttribute METHOD
-
REMOTE_ADDRESS
public static final AccessAttribute REMOTE_ADDRESS
-
REMOTE_USER
public static final AccessAttribute REMOTE_USER
-
REQUEST_TIME
public static final AccessAttribute REQUEST_TIME
-
REQUEST_URI
public static final AccessAttribute REQUEST_URI
-
REQUEST_URL
public static final AccessAttribute REQUEST_URL
-
PATH_QUERY
public static final AccessAttribute PATH_QUERY
-
STATUS_CODE
public static final AccessAttribute STATUS_CODE
-
PROTOCOL
public static final AccessAttribute PROTOCOL
-
REMOTE_HOST
public static final AccessAttribute REMOTE_HOST
-
SERVER_NAME
public static final AccessAttribute SERVER_NAME
-
REQUEST_PARAMETERS
public static final AccessAttribute REQUEST_PARAMETERS
-
USER_AGENT
public static final AccessAttribute USER_AGENT
-
LOCAL_PORT
public static final AccessAttribute LOCAL_PORT
-
REQUEST_CONTENT
public static final AccessAttribute REQUEST_CONTENT
-
RESPONSE_CONTENT
public static final AccessAttribute RESPONSE_CONTENT
-
TIMESTAMP
public static final AccessAttribute TIMESTAMP
-
-
Method Detail
-
values
public static AccessAttribute[] 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 (AccessAttribute c : AccessAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessAttribute 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
-
-