@Singleton public class SystemFileEncoder extends AbstractFileEncoder<io.micronaut.http.server.types.files.SystemFile>
ServletResponseEncoder
for SystemFile
.Constructor and Description |
---|
SystemFileEncoder() |
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.SystemFile value)
Encode the given value.
|
java.lang.Class<io.micronaut.http.server.types.files.SystemFile> |
getResponseType() |
ifNotModified, setDateAndCacheHeaders, setDateHeader
public java.lang.Class<io.micronaut.http.server.types.files.SystemFile> 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.SystemFile value)
ServletResponseEncoder
exchange
- The changeannotationMetadata
- The annotation metadata declared on the methodvalue
- The value to encode