@Provider
@Consumes(value={"application/json","text/json","*/*"})
public class JsonStructureBodyReader
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<JsonStructure>
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
JSON |
private static java.lang.String |
PLUS_JSON |
private JsonReaderFactory |
rf |
| Constructor and Description |
|---|
JsonStructureBodyReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
JsonStructure |
readFrom(java.lang.Class<JsonStructure> jsonStructureClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> stringStringMultivaluedMap,
java.io.InputStream inputStream) |
private static boolean |
supportsMediaType(javax.ws.rs.core.MediaType mediaType) |
private final JsonReaderFactory rf
private static final java.lang.String JSON
private static final java.lang.String PLUS_JSON
public boolean isReadable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<JsonStructure>private static boolean supportsMediaType(javax.ws.rs.core.MediaType mediaType)
public JsonStructure readFrom(java.lang.Class<JsonStructure> jsonStructureClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> stringStringMultivaluedMap, java.io.InputStream inputStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<JsonStructure>java.io.IOExceptionjavax.ws.rs.WebApplicationException