Class FileEncoder
java.lang.Object
io.micronaut.servlet.http.encoders.FileEncoder
- All Implemented Interfaces:
ServletResponseEncoder<File>
@Singleton
@Deprecated(forRemoval=true,
since="5.1.0")
public class FileEncoder
extends Object
implements ServletResponseEncoder<File>
Deprecated, for removal: This API element is subject to removal in a future version.
Handles
File.- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.FileEncoder(@Nullable ServletConfiguration servletConfiguration) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>encode(@NonNull ServletExchange<?, ?> exchange, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, @NonNull File value) Deprecated, for removal: This API element is subject to removal in a future version.Encode the given value.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
FileEncoder
Deprecated, for removal: This API element is subject to removal in a future version. -
FileEncoder
public FileEncoder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getResponseType
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getResponseTypein interfaceServletResponseEncoder<File>- Returns:
- The response type.
-
encode
public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> encode(@NonNull @NonNull ServletExchange<?, ?> exchange, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, @NonNull @NonNull File value) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ServletResponseEncoderEncode the given value.- Specified by:
encodein interfaceServletResponseEncoder<File>- Parameters:
exchange- The changeannotationMetadata- The annotation metadata declared on the methodvalue- The value to encode- Returns:
- A publisher that emits completes with the response once the value has been encoded
-
ResponseBodyWriter