Class JacksonMessageBodyWriter

java.lang.Object
org.pentaho.platform.web.servlet.jaxrs.JacksonMessageBodyBase
org.pentaho.platform.web.servlet.jaxrs.JacksonMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Object>

@Provider public class JacksonMessageBodyWriter extends JacksonMessageBodyBase implements javax.ws.rs.ext.MessageBodyWriter<Object>
  • Constructor Details

    • JacksonMessageBodyWriter

      public JacksonMessageBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> cls, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Object>
    • writeTo

      public void writeTo(Object obj, Class<?> cls, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> multivaluedMap, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Object>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException
    • getSize

      public long getSize(Object o, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<Object>