Class JakartaPathParamMapper

java.lang.Object
io.micronaut.servlet.annotation.processor.JakartaPathParamMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper

public final class JakartaPathParamMapper extends Object
Maps jakarta.websocket.server.PathParam to io.micronaut.http.annotation.PathVariable.

Jakarta names the URI template variable in the annotation and leaves the parameter name free, so the name is carried across rather than relying on the parameter name as Micronaut otherwise would.

Since:
6.2.0
Author:
graemerocher
  • Constructor Details

    • JakartaPathParamMapper

      public JakartaPathParamMapper()
      Default constructor.
  • Method Details

    • getName

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

      public final List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Specified by:
      map in interface io.micronaut.inject.annotation.AnnotationMapper<Annotation>