@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>
IOException
javax.ws.rs.WebApplicationException
public static DocumentModel readJson(org.codehaus.jackson.JsonParser jp, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request) throws IOException
IOException
public static void applyPropertyValues(DocumentModel src, DocumentModel dst) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.