Annotation Interface RouteInfo
Annotation to specify routing information for a request handler.
This annotation defines the endpoint, HTTP method, and whether a non-null body
is enforced for the annotated request handler class.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSpecifies the endpoint for the request handler.Specifies the HTTP method for the request handler. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Indicates whether a non-null body is enforced for requests handled by this route.
-
Element Details
-
endpoint
String endpointSpecifies the endpoint for the request handler.- Returns:
- the endpoint path (e.g., "/resource")
-
method
HttpMethod methodSpecifies the HTTP method for the request handler.- Returns:
- the HTTP method (e.g., GET, POST)
-
enforceNonNullBody
boolean enforceNonNullBodyIndicates whether a non-null body is enforced for requests handled by this route. By default, this is set tofalse
.- Returns:
true
if a non-null body is required, otherwisefalse
- Default:
false
-