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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetName()final List<io.micronaut.core.annotation.AnnotationValue<?>> map(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
-
Constructor Details
-
JakartaOnMessageMapper
public JakartaOnMessageMapper()Default constructor.
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.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:
mapin interfaceio.micronaut.inject.annotation.AnnotationMapper<Annotation>
-