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