- 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>
- 
- 
Field SummaryFields Modifier and Type Field Description private org.apache.johnzon.mapper.Mappermapper
 - 
Constructor SummaryConstructors Constructor Description JohnzonMessageBodyWriter()JohnzonMessageBodyWriter(org.apache.johnzon.mapper.Mapper mapper, java.util.Collection<java.lang.String> ignoredTypes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(T t, java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)voidwriteTo(T t, java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)- 
Methods inherited from class org.apache.johnzon.jaxrs.IgnorableTypesisIgnored
 
- 
 
- 
- 
- 
Method Detail- 
getSizepublic long getSize(T t, java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- getSizein interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
 
 - 
isWriteablepublic boolean isWriteable(java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)- Specified by:
- isWriteablein interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
 
 - 
writeTopublic void writeTo(T t, java.lang.Class<?> rawType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException - Specified by:
- writeToin interface- jakarta.ws.rs.ext.MessageBodyWriter<T>
- Throws:
- java.io.IOException
 
 
- 
 
-