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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Object o, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> cls, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) 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) Methods inherited from class org.pentaho.platform.web.servlet.jaxrs.JacksonMessageBodyBase
getMapper, isSupported
-
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 interfacejavax.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 interfacejavax.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 interfacejavax.ws.rs.ext.MessageBodyWriter<Object>
-