Package com.linecorp.armeria.server.file
Class FileServiceConfig
java.lang.Object
com.linecorp.armeria.server.file.FileServiceConfig
public final class FileServiceConfig extends Object
FileService
configuration.-
Method Summary
Modifier and Type Method Description boolean
autoIndex()
Returns whether a directory listing for a directory without anindex.html
file will be auto-generated.Clock
clock()
Returns theClock
the provides the current date and time to anFileService
.String
entryCacheSpec()
Returns the cache spec of the file entry cache, as defined inCaffeineSpec
.HttpHeaders
headers()
Returns the additionalHttpHeaders
to send in a response.int
maxCacheEntrySizeBytes()
Returns the maximum allowed size of a cached file entry.boolean
serveCompressedFiles()
Returns whether pre-compressed files should be served.String
toString()
HttpVfs
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. -
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. -
toString
-