Package io.micronaut.jaxrs.common
Class JaxRsStreamingOutputMessageBodyWriter<T extends StreamingOutput>
java.lang.Object
io.micronaut.jaxrs.common.JaxRsStreamingOutputMessageBodyWriter<T>
- Type Parameters:
T
- The steaming output
- All Implemented Interfaces:
MessageBodyWriter<T>
@Prototype
@Internal
public final class JaxRsStreamingOutputMessageBodyWriter<T extends StreamingOutput>
extends Object
implements MessageBodyWriter<T>
The implementation of
MessageBodyWriter
for StreamingOutput
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Constructor Details
-
JaxRsStreamingOutputMessageBodyWriter
public JaxRsStreamingOutputMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(@NonNull @NonNull Argument<T> type, @Nullable @Nullable MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<T extends StreamingOutput>
-
writeTo
public void writeTo(@NonNull @NonNull Argument<T> type, @NonNull @NonNull MediaType mediaType, T streamingOutput, @NonNull @NonNull MutableHeaders outgoingHeaders, @NonNull @NonNull OutputStream outputStream) throws CodecException - Specified by:
writeTo
in interfaceMessageBodyWriter<T extends StreamingOutput>
- Throws:
CodecException
-