DocumentModelJsonReader
which is registered by default and available to marshal
DocumentModel
from the Nuxeo Rest API thanks to the JAX-RS marshaller JsonCoreIODelegate
. On removal, need to remove also DocumentModelJsonReaderLegacy
because it uses it using
reflexion.@Deprecated @Provider public class JSONDocumentModelReader extends Object implements javax.ws.rs.ext.MessageBodyReader<DocumentModel>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
Deprecated.
|
Constructor and Description |
---|
JSONDocumentModelReader()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
applyPropertyValues(DocumentModel src,
DocumentModel dst)
Deprecated.
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
|
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)
Deprecated.
|
static DocumentModel |
readJson(org.codehaus.jackson.JsonParser jp,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected DocumentModel |
readRequest(String content,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected static final org.apache.commons.logging.Log log
public JSONDocumentModelReader()
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
protected DocumentModel readRequest(String content, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.servlet.http.HttpServletRequest request) throws IOException
IOException
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)
Copyright © 2015 Nuxeo SA. All rights reserved.