Class MediaTypeMapper
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper
-
- All Implemented Interfaces:
ServerRestHandler
,RestHandler<ResteasyReactiveRequestContext>
public class MediaTypeMapper extends Object implements ServerRestHandler
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 Constructor Description MediaTypeMapper(List<RuntimeResource> runtimeResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(ResteasyReactiveRequestContext requestContext)
jakarta.ws.rs.core.MediaType
selectMediaType(ResteasyReactiveRequestContext requestContext, org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper.Holder holder)
-
-
-
Constructor Detail
-
MediaTypeMapper
public MediaTypeMapper(List<RuntimeResource> runtimeResources)
-
-
Method Detail
-
handle
public void handle(ResteasyReactiveRequestContext requestContext) throws Exception
- Specified by:
handle
in interfaceRestHandler<ResteasyReactiveRequestContext>
- Specified by:
handle
in interfaceServerRestHandler
- Throws:
Exception
-
selectMediaType
public jakarta.ws.rs.core.MediaType selectMediaType(ResteasyReactiveRequestContext requestContext, org.jboss.resteasy.reactive.server.handlers.MediaTypeMapper.Holder holder)
-
-