- java.lang.Object
-
- java.lang.Enum<ServerRequestAttribute>
-
- io.helidon.grpc.server.ServerRequestAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerRequestAttribute>
public enum ServerRequestAttribute extends Enum<ServerRequestAttribute>
An enum representing different types of gRPC request attribute that can be added to tracing logs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL
log all attributes.CALL_ATTRIBUTES
log the call attributes.HEADERS
Log the request headers.METHOD_NAME
log the method name.METHOD_TYPE
Log the method type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerRequestAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerRequestAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HEADERS
public static final ServerRequestAttribute HEADERS
Log the request headers.
-
METHOD_TYPE
public static final ServerRequestAttribute METHOD_TYPE
Log the method type.
-
METHOD_NAME
public static final ServerRequestAttribute METHOD_NAME
log the method name.
-
CALL_ATTRIBUTES
public static final ServerRequestAttribute CALL_ATTRIBUTES
log the call attributes.
-
ALL
public static final ServerRequestAttribute ALL
log all attributes.
-
-
Method Detail
-
values
public static ServerRequestAttribute[] 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 (ServerRequestAttribute c : ServerRequestAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerRequestAttribute 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
-
-