@Singleton public class FileEncoder extends java.lang.Object implements ServletResponseEncoder<java.io.File>
File.| Constructor and Description |
|---|
FileEncoder() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
encode(ServletExchange<?,?> exchange,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
java.io.File value)
Encode the given value.
|
java.lang.Class<java.io.File> |
getResponseType() |
public java.lang.Class<java.io.File> getResponseType()
getResponseType in interface ServletResponseEncoder<java.io.File>public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> encode(@NonNull
ServletExchange<?,?> exchange,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
@NonNull
java.io.File value)
ServletResponseEncoderencode in interface ServletResponseEncoder<java.io.File>exchange - The changeannotationMetadata - The annotation metadata declared on the methodvalue - The value to encode