Class JaxRsStreamingOutputMessageBodyWriter<T extends StreamingOutput>
java.lang.Object
io.micronaut.jaxrs.common.body.standard.JaxRsStreamingOutputMessageBodyWriter<T>
- Type Parameters:
T
- The steaming output
- All Implemented Interfaces:
MessageBodyWriter<T>
@Order(2147483647)
@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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) void
writeTo
(T streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
JaxRsStreamingOutputMessageBodyWriter
public JaxRsStreamingOutputMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isWriteable
in interfaceMessageBodyWriter<T extends StreamingOutput>
-
writeTo
public void writeTo(T streamingOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException- Specified by:
writeTo
in interfaceMessageBodyWriter<T extends StreamingOutput>
- Throws:
IOException
WebApplicationException
-