@Provider public class ContentLocationMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<InputStream>
Constructor and Description |
---|
ContentLocationMessageBodyReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
InputStream |
readFrom(Class<InputStream> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
protected void |
setContentService(ExternalContentService externalContentService) |
public ContentLocationMessageBodyReader()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<InputStream>
public InputStream readFrom(Class<InputStream> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<InputStream>
IOException
protected void setContentService(ExternalContentService externalContentService)
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.