Package com.linecorp.armeria.server.file
Class FileServiceConfig
java.lang.Object
com.linecorp.armeria.server.file.FileServiceConfig
FileService
configuration.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether pre-compressed files should be automatically decompressed if there is noHttpHeaderNames.ACCEPT_ENCODING
corresponding to the compressed file.boolean
Returns whether a directory listing for a directory without anindex.html
file will be auto-generated.clock()
Returns theClock
the provides the current date and time to anFileService
.Returns the cache spec of the file entry cache, as defined inCaffeineSpec
.headers()
Returns the additionalHttpHeaders
to send in a response.int
Returns the maximum allowed size of a cached file entry.Returns theMediaTypeResolver
used for resolving theMediaType
of a file.boolean
Returns whether pre-compressed files should be served.toString()
vfs()
Returns theHttpVfs
that provides the static files to anFileService
.
-
Method Details
-
vfs
Returns theHttpVfs
that provides the static files to anFileService
. -
clock
Returns theClock
the provides the current date and time to anFileService
. -
entryCacheSpec
Returns the cache spec of the file entry cache, as defined inCaffeineSpec
. -
maxCacheEntrySizeBytes
public int maxCacheEntrySizeBytes()Returns the maximum allowed size of a cached file entry. Files bigger than this value will not be cached. -
serveCompressedFiles
public boolean serveCompressedFiles()Returns whether pre-compressed files should be served. -
autoDecompress
public boolean autoDecompress()Returns whether pre-compressed files should be automatically decompressed if there is noHttpHeaderNames.ACCEPT_ENCODING
corresponding to the compressed file. -
autoIndex
public boolean autoIndex()Returns whether a directory listing for a directory without anindex.html
file will be auto-generated. -
headers
Returns the additionalHttpHeaders
to send in a response. -
mediaTypeResolver
Returns theMediaTypeResolver
used for resolving theMediaType
of a file. -
toString
-