@Singleton public class StreamFileEncoder extends AbstractFileEncoder<io.micronaut.http.server.types.files.StreamedFile>
ServletResponseEncoder
for StreamedFile
.Constructor and Description |
---|
StreamFileEncoder() |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
encode(ServletExchange<?,?> exchange,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
io.micronaut.http.server.types.files.StreamedFile value)
Encode the given value.
|
java.lang.Class<io.micronaut.http.server.types.files.StreamedFile> |
getResponseType() |
ifNotModified, setDateAndCacheHeaders, setDateHeader
public java.lang.Class<io.micronaut.http.server.types.files.StreamedFile> getResponseType()
public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> encode(@Nonnull ServletExchange<?,?> exchange, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, @Nonnull io.micronaut.http.server.types.files.StreamedFile value)
ServletResponseEncoder
exchange
- The changeannotationMetadata
- The annotation metadata declared on the methodvalue
- The value to encode