@Provider public class DocumentationItemReader extends Object implements javax.ws.rs.ext.MessageBodyReader<DocumentationItem>
Modifier and Type | Field and Description |
---|---|
static javax.ws.rs.core.MediaType |
DocumentationItemMediaType |
protected static org.apache.commons.logging.Log |
log |
protected javax.servlet.http.HttpServletRequest |
request |
Constructor and Description |
---|
DocumentationItemReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
DocumentationItem |
readFrom(Class<DocumentationItem> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public static final javax.ws.rs.core.MediaType DocumentationItemMediaType
protected static final org.apache.commons.logging.Log log
@Context protected javax.servlet.http.HttpServletRequest request
public DocumentationItemReader()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<DocumentationItem>
public DocumentationItem readFrom(Class<DocumentationItem> 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<DocumentationItem>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2015 Nuxeo SA. All rights reserved.