Package io.micronaut.jaxrs.common
Class JaxRsMessageBodyReader<T>
java.lang.Object
io.micronaut.jaxrs.common.JaxRsMessageBodyReader<T>
- Type Parameters:
T
- The type
- All Implemented Interfaces:
MessageBodyReader<T>
@Internal
@Singleton
@EachBean(value=jakarta.ws.rs.ext.MessageBodyReader.class,
remapGenerics=)
public final class JaxRsMessageBodyReader<T>
extends Object
implements MessageBodyReader<T>
The reader remapped
MessageBodyReader
.- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionJaxRsMessageBodyReader
(MessageBodyReader<T> delegate, List<ReaderInterceptor> readerInterceptor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.body.MessageBodyReader
read
-
Constructor Details
-
JaxRsMessageBodyReader
public JaxRsMessageBodyReader(MessageBodyReader<T> delegate, List<ReaderInterceptor> readerInterceptor)
-
-
Method Details
-
getDelegate
-
isReadable
public boolean isReadable(@NonNull @NonNull Argument<T> type, @Nullable @Nullable MediaType mediaType) - Specified by:
isReadable
in interfaceMessageBodyReader<T>
-
read
@Nullable public T read(@NonNull @NonNull Argument<T> type, @Nullable @Nullable MediaType mediaType, @NonNull @NonNull Headers httpHeaders, @NonNull @NonNull InputStream inputStream) throws CodecException - Specified by:
read
in interfaceMessageBodyReader<T>
- Throws:
CodecException
-