Enum HttpRouteSource
- java.lang.Object
-
- java.lang.Enum<HttpRouteSource>
-
- io.opentelemetry.instrumentation.api.instrumenter.http.HttpRouteSource
-
- All Implemented Interfaces:
Serializable,Comparable<HttpRouteSource>
public enum HttpRouteSource extends Enum<HttpRouteSource>
Represents the source that provided thehttp.routeattribute.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTROLLERFILTERNESTED_CONTROLLERSERVLET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpRouteSourcevalueOf(String name)Returns the enum constant of this type with the specified name.static HttpRouteSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILTER
public static final HttpRouteSource FILTER
-
SERVLET
public static final HttpRouteSource SERVLET
-
CONTROLLER
public static final HttpRouteSource CONTROLLER
-
NESTED_CONTROLLER
public static final HttpRouteSource NESTED_CONTROLLER
-
-
Method Detail
-
values
public static HttpRouteSource[] 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 (HttpRouteSource c : HttpRouteSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpRouteSource 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
-
-