Package io.micronaut.jaxrs.common
Class InterceptedMessageBodyWriter<T>
java.lang.Object
io.micronaut.jaxrs.common.InterceptedMessageBodyWriter<T>
- Type Parameters:
T
- The type
- All Implemented Interfaces:
MessageBodyWriter<T>
@Internal
public final class InterceptedMessageBodyWriter<T>
extends Object
implements MessageBodyWriter<T>
The Micronaut body writer with JAX-RS interceptors.
- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionInterceptedMessageBodyWriter
(@Nullable Class<?> writerType, MessageBodyWriter<T> delegate, List<WriterInterceptor> writerInterceptor) -
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.MessageBodyWriter
createSpecific, isBlocking, writeTo
-
Constructor Details
-
InterceptedMessageBodyWriter
public InterceptedMessageBodyWriter(@Nullable @Nullable Class<?> writerType, MessageBodyWriter<T> delegate, List<WriterInterceptor> writerInterceptor)
-
-
Method Details
-
isWriteable
public boolean isWriteable(@NonNull @NonNull Argument<T> type, @Nullable @Nullable MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<T>
-
writeTo
public void writeTo(@NonNull @NonNull Argument<T> type, @NonNull @NonNull MediaType mediaType, T object, @NonNull @NonNull MutableHeaders outgoingHeaders, @NonNull @NonNull OutputStream outputStream) throws CodecException - Specified by:
writeTo
in interfaceMessageBodyWriter<T>
- Throws:
CodecException
-