Enum HttpServerRouteSource
java.lang.Object
java.lang.Enum<HttpServerRouteSource>
io.opentelemetry.instrumentation.api.semconv.http.HttpServerRouteSource
- All Implemented Interfaces:
Serializable,Comparable<HttpServerRouteSource>,java.lang.constant.Constable
Represents the source that provided the
http.route attribute.- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the controller, usually defined as part of some MVC framework.Represents a nested controller, usually defined as part of some MVC framework.Represents the actual server handler.Represents a "filter" that may execute before the actual server handler. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpServerRouteSourceReturns the enum constant of this type with the specified name.static HttpServerRouteSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SERVER_FILTER
Represents a "filter" that may execute before the actual server handler. E.g. the Servlet APIFilterinterface. Since multiple filters may match the same request, the one with the longest (most detailed) route will be chosen. -
SERVER
Represents the actual server handler. E.g. the Servlet APIServletinterface. -
CONTROLLER
Represents the controller, usually defined as part of some MVC framework. E.g. a Spring Web MVC controller method, or a JAX-RS annotated resource method. -
NESTED_CONTROLLER
Represents a nested controller, usually defined as part of some MVC framework. E.g. a JAX-RS annotated sub-resource method. Since multiple nested controllers may match the same request, the one with the longest (most detailed) route will be chosen.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-