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 Details

    • HttpExchangeAnnotationTransformer

      public HttpExchangeAnnotationTransformer()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • isHttpMethodMapping

      protected boolean isHttpMethodMapping(@Nullable @Nullable String method)
      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 interface io.micronaut.inject.annotation.AnnotationTransformer<Annotation>