@Provider public class JacksonMessageBodyWriter extends JacksonMessageBodyBase implements javax.ws.rs.ext.MessageBodyWriter<Object>
Constructor and Description |
---|
JacksonMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
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) |
getMapper, isSupported
public boolean isWriteable(Class<?> cls, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
IOException
javax.ws.rs.WebApplicationException
public long getSize(Object o, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<Object>
Copyright © 2017 Hitachi Vantara. All rights reserved.