@Provider public class JSONDocumentModelReader extends Object implements MessageBodyReader<DocumentModel>
| Constructor and Description |
|---|
JSONDocumentModelReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
DocumentModel |
readFrom(Class<DocumentModel> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
static DocumentModel |
readJson(org.codehaus.jackson.JsonParser jp,
MultivaluedMap<String,String> httpHeaders,
HttpServletRequest request) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable in interface MessageBodyReader<DocumentModel>public DocumentModel readFrom(Class<DocumentModel> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
readFrom in interface MessageBodyReader<DocumentModel>IOExceptionWebApplicationExceptionpublic static DocumentModel readJson(org.codehaus.jackson.JsonParser jp, MultivaluedMap<String,String> httpHeaders, HttpServletRequest request) throws Exception
jp - httpHeaders - request2 - ExceptionCopyright © 2014 Nuxeo SA. All Rights Reserved.