Package org.apache.johnzon.jaxrs
Class JohnzonMessageBodyWriter<T>
- java.lang.Object
- 
- org.apache.johnzon.jaxrs.IgnorableTypes
- 
- org.apache.johnzon.jaxrs.JohnzonMessageBodyWriter<T>
 
 
- 
- All Implemented Interfaces:
- jakarta.ws.rs.ext.MessageBodyWriter<T>
 
 @Produces({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"}) public class JohnzonMessageBodyWriter<T> extends IgnorableTypes implements jakarta.ws.rs.ext.MessageBodyWriter<T>
- 
- 
Constructor SummaryConstructors Constructor Description JohnzonMessageBodyWriter()JohnzonMessageBodyWriter(Mapper mapper, Collection<String> ignoredTypes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)voidwriteTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)- 
Methods inherited from class org.apache.johnzon.jaxrs.IgnorableTypesisIgnored
 
- 
 
- 
- 
- 
Field Detail- 
mapperprivate final Mapper mapper 
 
- 
 - 
Constructor Detail- 
JohnzonMessageBodyWriterpublic JohnzonMessageBodyWriter() 
 - 
JohnzonMessageBodyWriterpublic JohnzonMessageBodyWriter(Mapper mapper, Collection<String> ignoredTypes) 
 
- 
 - 
Method Detail- 
getSizepublic long getSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- getSizein interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
 
 - 
isWriteablepublic boolean isWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- isWriteablein interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
 
 - 
writeTopublic void writeTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException - Specified by:
- writeToin interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
- Throws:
- IOException
 
 
- 
 
-