Class PostMappingAnnotationTransformer
java.lang.Object
io.micronaut.spring.web.annotation.RequestMappingAnnotationTransformer
io.micronaut.spring.web.annotation.PostMappingAnnotationTransformer
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,io.micronaut.inject.annotation.AnnotationTransformer<Annotation>
,io.micronaut.inject.annotation.NamedAnnotationTransformer
Maps Spring PostMapping to Micronaut.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
protected boolean
isHttpMethodMapping
(io.micronaut.http.HttpMethod method) Whether the given method is an HTTP method mapping.protected io.micronaut.core.annotation.AnnotationValueBuilder<?>
newBuilder
(io.micronaut.http.HttpMethod httpMethod, io.micronaut.core.annotation.AnnotationValue<Annotation> annotation) Construct a new builder for the given http method.Methods inherited from class io.micronaut.spring.web.annotation.RequestMappingAnnotationTransformer
transform
-
Constructor Details
-
PostMappingAnnotationTransformer
public PostMappingAnnotationTransformer()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
- Overrides:
getName
in classRequestMappingAnnotationTransformer
-
newBuilder
protected io.micronaut.core.annotation.AnnotationValueBuilder<?> newBuilder(io.micronaut.http.HttpMethod httpMethod, io.micronaut.core.annotation.AnnotationValue<Annotation> annotation) Description copied from class:RequestMappingAnnotationTransformer
Construct a new builder for the given http method.- Overrides:
newBuilder
in classRequestMappingAnnotationTransformer
- Parameters:
httpMethod
- The methodannotation
- The annotation- Returns:
- The builder
-
isHttpMethodMapping
protected boolean isHttpMethodMapping(io.micronaut.http.HttpMethod method) Description copied from class:RequestMappingAnnotationTransformer
Whether the given method is an HTTP method mapping.- Overrides:
isHttpMethodMapping
in classRequestMappingAnnotationTransformer
- Parameters:
method
- The method, can be null- Returns:
- True if it is
-