Package | Description |
---|---|
bayou.file |
Utilities for files.
|
Modifier and Type | Method and Description |
---|---|
StaticFileConf |
StaticFileConf.cache(boolean cache)
Whether to cache the file content in memory.
|
StaticFileConf |
StaticFileConf.contentType(ContentType contentType)
The content type of this file.
|
StaticFileConf |
StaticFileConf.etag(String etag)
The ETag of this file.
|
StaticFileConf |
StaticFileConf.exclude(boolean exclude)
Whether to exclude this file.
|
StaticFileConf |
StaticFileConf.expires(Instant expiresAbsolute,
Duration expiresRelative)
The expiration time of this file.
|
StaticFileConf |
StaticFileConf.gzip(boolean gzip)
Whether this file should be compressed by gzip.
|
StaticFileConf |
StaticFileConf.header(String name,
String value)
Add a
response header . |
StaticFileConf |
StaticFileConf.isIndexFile(boolean isIndexFile)
Whether this is the index file for the parent directory.
|
Constructor and Description |
---|
StaticHandler(String uriPrefix,
String dirPrefix,
ConsumerX<StaticFileConf> confMod)
Create a StaticHandler.
|