@Provider public class JSONDocumentModelReader extends Object implements javax.ws.rs.ext.MessageBodyReader<DocumentModel>
| Constructor and Description |
|---|
JSONDocumentModelReader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyPropertyValues(DocumentModel src,
DocumentModel dst) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
DocumentModel |
readFrom(Class<DocumentModel> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
static DocumentModel |
readJson(org.codehaus.jackson.JsonParser jp,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
javax.servlet.http.HttpServletRequest request) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<DocumentModel>public DocumentModel readFrom(Class<DocumentModel> 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<DocumentModel>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic static DocumentModel readJson(org.codehaus.jackson.JsonParser jp, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request) throws Exception
Exceptionpublic static void applyPropertyValues(DocumentModel src, DocumentModel dst) throws ClientException
ClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.