Skip to content

Access api resource method's metadata inside micronaut HttpServerFilter #5578

Answered by jameskleeh
subash89 asked this question in Q&A
Discussion options

You must be logged in to vote

The route match is an attribute on the request. request.getAttribute(HttpAttributes.ROUTE_MATCH, AnnotationMetadata.class) That will provide you with an Optional<AnnotationMetadata> which contains the annotations on the method if available.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by subash89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants