Package io.micronaut.jaxrs.common
Class InterceptedMessageBodyReader<T>
java.lang.Object
io.micronaut.jaxrs.common.InterceptedMessageBodyReader<T>
- Type Parameters:
T
- The type
- All Implemented Interfaces:
MessageBodyReader<T>
@Internal
public final class InterceptedMessageBodyReader<T>
extends Object
implements MessageBodyReader<T>
The Micronaut body reader with JAX-RS interceptors.
- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionInterceptedMessageBodyReader
(@Nullable Class<?> readerType, MessageBodyReader<T> reader, 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
-
InterceptedMessageBodyReader
public InterceptedMessageBodyReader(@Nullable @Nullable Class<?> readerType, MessageBodyReader<T> reader, List<ReaderInterceptor> readerInterceptor)
-
-
Method Details
-
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
-