Class MediaTypeMapper
java.lang.Object
org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper
- All Implemented Interfaces:
ServerRestHandler,org.jboss.resteasy.reactive.spi.RestHandler<ResteasyReactiveRequestContext>
Handler that deals with the case when two methods have the same path,
and it needs to select based on content type.
This is not super optimised, as it is not a common case. Most apps won't every use this handler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ResteasyReactiveRequestContext requestContext) jakarta.ws.rs.core.MediaTypeselectMediaType(ResteasyReactiveRequestContext requestContext, org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper.Holder holder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.reactive.server.spi.ServerRestHandler
isCancellable
-
Constructor Details
-
MediaTypeMapper
-
-
Method Details
-
handle
- Specified by:
handlein interfaceorg.jboss.resteasy.reactive.spi.RestHandler<ResteasyReactiveRequestContext>- Specified by:
handlein interfaceServerRestHandler- Throws:
Exception
-
selectMediaType
public jakarta.ws.rs.core.MediaType selectMediaType(ResteasyReactiveRequestContext requestContext, org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper.Holder holder)
-