@Provider public class DirectoryEntryReader extends Object implements MessageBodyReader<DirectoryEntry>
Constructor and Description |
---|
DirectoryEntryReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
DirectoryEntry |
readFrom(Class<DirectoryEntry> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
static DirectoryEntry |
readJson(org.codehaus.jackson.JsonParser jp,
MultivaluedMap<String,String> httpHeaders) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable
in interface MessageBodyReader<DirectoryEntry>
public DirectoryEntry readFrom(Class<DirectoryEntry> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
readFrom
in interface MessageBodyReader<DirectoryEntry>
IOException
WebApplicationException
public static DirectoryEntry readJson(org.codehaus.jackson.JsonParser jp, MultivaluedMap<String,String> httpHeaders) throws IOException, ClientException
jp
- httpHeaders
- IOException
org.codehaus.jackson.JsonProcessingException
OperationException
ClientException
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.