Class MediaTypeDelegatingEntityWriter
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.core.serialization.MediaTypeDelegatingEntityWriter
-
- All Implemented Interfaces:
EntityWriter
public class MediaTypeDelegatingEntityWriter extends Object implements EntityWriter
An entity writer that will delegate based on the actual type of the returned entity.
-
-
Constructor Summary
Constructors Constructor Description MediaTypeDelegatingEntityWriter(Map<javax.ws.rs.core.MediaType,EntityWriter> typeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(ResteasyReactiveRequestContext context, Object entity)
-
-
-
Constructor Detail
-
MediaTypeDelegatingEntityWriter
public MediaTypeDelegatingEntityWriter(Map<javax.ws.rs.core.MediaType,EntityWriter> typeMap)
-
-
Method Detail
-
write
public void write(ResteasyReactiveRequestContext context, Object entity) throws IOException
- Specified by:
write
in interfaceEntityWriter
- Throws:
IOException
-
-