@Consumes(value="application/json") public class SimpleGsonBodyReader<T> extends Object implements javax.ws.rs.ext.MessageBodyReader<T>
| Constructor and Description |
|---|
SimpleGsonBodyReader() |
SimpleGsonBodyReader(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
T |
readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public SimpleGsonBodyReader(com.google.gson.Gson gson)
public SimpleGsonBodyReader()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>public T readFrom(Class<T> type, 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>IOExceptionCopyright © 2021. All rights reserved.