public final class FileServiceConfig extends Object
FileService configuration.| Modifier and Type | Method and Description |
|---|---|
boolean |
autoIndex()
Returns whether a directory listing for a directory without an
index.html file will be
auto-generated. |
Clock |
clock()
Returns the
Clock the provides the current date and time to an FileService. |
String |
entryCacheSpec()
Returns the cache spec of the file entry cache, as defined in
CaffeineSpec. |
HttpHeaders |
headers()
Returns the additional
HttpHeaders 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 the
HttpVfs that provides the static files to an FileService. |
public HttpVfs vfs()
HttpVfs that provides the static files to an FileService.public Clock clock()
Clock the provides the current date and time to an FileService.public String entryCacheSpec()
CaffeineSpec.public int maxCacheEntrySizeBytes()
public boolean serveCompressedFiles()
public boolean autoIndex()
index.html file will be
auto-generated.public HttpHeaders headers()
HttpHeaders to send in a response.Copyright © 2020 LeanCloud. All rights reserved.