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