Interface FileCustomizableResponseType

All Superinterfaces:
CustomizableResponseType, io.micronaut.http.body.MediaTypeProvider
All Known Implementing Classes:
StreamedFile, SystemFile

public interface FileCustomizableResponseType extends CustomizableResponseType, io.micronaut.http.body.MediaTypeProvider
A special type for file handling.
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
    Unused now, please follow RFC 6266
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     

    Methods inherited from interface io.micronaut.http.server.types.CustomizableResponseType

    process

    Methods inherited from interface io.micronaut.http.body.MediaTypeProvider

    getMediaType
  • Field Details

  • Method Details

    • getLastModified

      long getLastModified()
      Returns:
      The last modified date of the file
    • getLength

      long getLength()
      Returns:
      The length of the file