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