public final class HttpFileServiceConfig extends Object
HttpFileService 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 HttpFileService. |
Optional<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 HttpFileService. |
public HttpVfs vfs()
HttpVfs that provides the static files to an HttpFileService.public Clock clock()
Clock the provides the current date and time to an HttpFileService.public Optional<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.