@Provider public class ObjectProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<Object>
| Constructor and Description |
|---|
ObjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
private Method |
getFactoryMethod(Class<?> type) |
private Constructor<?> |
getJSONConstructor(Class<?> type) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public ObjectProvider()
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(Class<Object> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Object>IOExceptionjavax.ws.rs.WebApplicationExceptionprivate Method getFactoryMethod(Class<?> type)
private Constructor<?> getJSONConstructor(Class<?> type)
Copyright © 2018. All Rights Reserved.