Package io.micronaut.jaxrs.common
Class JaxRsReaderMessageBodyReader
java.lang.Object
io.micronaut.jaxrs.common.JaxRsReaderMessageBodyReader
- All Implemented Interfaces:
MessageBodyReader<Reader>
@Prototype
@Internal
public final class JaxRsReaderMessageBodyReader
extends Object
implements MessageBodyReader<Reader>
The implementation of
MessageBodyReader
for Reader
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) readFrom
(Class<Reader> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
JaxRsReaderMessageBodyReader
public JaxRsReaderMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isReadable
in interfaceMessageBodyReader<Reader>
-
readFrom
public Reader readFrom(Class<Reader> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws WebApplicationException- Specified by:
readFrom
in interfaceMessageBodyReader<Reader>
- Throws:
WebApplicationException
-