@Provider @Consumes(value="application/json") @Priority(value=4999) public class JsonIdAdderBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<Object>
TypeIdResolver.idFromBaseType(), by adding the id implicitly (if it is missing) before the actual unmarshal.| Constructor and Description |
|---|
JsonIdAdderBodyReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Object |
readFrom(@NonNull Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Object>public Object readFrom(@NonNull Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws javax.ws.rs.WebApplicationException, IOException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Object>javax.ws.rs.WebApplicationExceptionIOExceptionCopyright © 2022. All rights reserved.