@Provider @Produces(value="*/*") public class JohnzonMessageBodyWriter<T> extends IgnorableTypes implements javax.ws.rs.ext.MessageBodyWriter<T>
Constructor and Description |
---|
JohnzonMessageBodyWriter() |
JohnzonMessageBodyWriter(Mapper mapper,
Collection<String> ignoredTypes) |
Modifier and Type | Method and Description |
---|---|
long |
getSize(T t,
Class<?> rawType,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> rawType,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(T t,
Class<?> rawType,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
isIgnored
private final Mapper mapper
public JohnzonMessageBodyWriter()
public JohnzonMessageBodyWriter(Mapper mapper, Collection<String> ignoredTypes)
public long getSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public boolean isWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<T>
public void writeTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<T>
IOException
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.