Class HttpExchangeAnnotationTransformer
java.lang.Object
io.micronaut.spring.web.annotation.exchange.HttpExchangeAnnotationTransformer
- All Implemented Interfaces:
io.micronaut.core.naming.Named
,io.micronaut.inject.annotation.AnnotationTransformer<Annotation>
,io.micronaut.inject.annotation.NamedAnnotationTransformer
- Direct Known Subclasses:
DeleteExchangeAnnotationTransformer
,GetExchangeAnnotationTransformer
,PatchExchangeAnnotationTransformer
,PostExchangeAnnotationTransformer
,PutExchangeAnnotationTransformer
public class HttpExchangeAnnotationTransformer
extends Object
implements io.micronaut.inject.annotation.NamedAnnotationTransformer
Maps Spring HttpExchange to Micronaut.
- Since:
- 5.10.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
protected boolean
isHttpMethodMapping
(@Nullable String method) Whether the given method is an HTTP method mapping.protected @NonNull io.micronaut.core.annotation.AnnotationValueBuilder<?>
newBuilder
(String method) Construct a new builder for the given http method.List<io.micronaut.core.annotation.AnnotationValue<?>>
transform
(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
-
Constructor Details
-
HttpExchangeAnnotationTransformer
public HttpExchangeAnnotationTransformer()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
isHttpMethodMapping
Whether the given method is an HTTP method mapping.- Parameters:
method
- The method, can be null- Returns:
- True if it is
-
newBuilder
@NonNull protected @NonNull io.micronaut.core.annotation.AnnotationValueBuilder<?> newBuilder(String method) Construct a new builder for the given http method.- Parameters:
method
- HTTP method- Returns:
- The builder
-
transform
public List<io.micronaut.core.annotation.AnnotationValue<?>> transform(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext) - Specified by:
transform
in interfaceio.micronaut.inject.annotation.AnnotationTransformer<Annotation>
-