Class JakartaOnMessageMapper

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

public final class JakartaOnMessageMapper extends Object
Maps jakarta.websocket.OnMessage to io.micronaut.websocket.annotation.OnMessage.

maxMessageSize becomes maxPayloadLength, but only when the endpoint declared it: the Jakarta default of -1 means "the container's default", and the runtime treats a maxPayloadLength that is present as declared, so copying the default would silently override the configured message size.

Since:
6.2.0
Author:
graemerocher
  • Constructor Details

    • JakartaOnMessageMapper

      public JakartaOnMessageMapper()
      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>