Interface FileCustomizableResponseType
- All Superinterfaces:
CustomizableResponseType
- All Known Subinterfaces:
NettyFileCustomizableResponseType
- All Known Implementing Classes:
NettyStreamedFileCustomizableResponseType
,NettySystemFileCustomizableResponseType
,StreamedFile
,SystemFile
A special type for file handling.
- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.Unused now, please follow RFC 6266 -
Method Summary
Modifier and TypeMethodDescriptionlong
long
Methods inherited from interface io.micronaut.http.server.types.CustomizableResponseType
process
-
Field Details
-
ATTACHMENT_HEADER
Deprecated.Unused now, please follow RFC 6266- See Also:
-
-
Method Details
-
getLastModified
long getLastModified()- Returns:
- The last modified date of the file
-
getLength
long getLength()- Returns:
- The length of the file
-
getMediaType
MediaType getMediaType()- Returns:
- The media type of the file
-