public class Classpath extends Object
Always use chunked transfer encoding.
MimeType detection done using Application MimeTypes, fallback to application/octet-stream
.
Log 404 at DEBUG level.
Log 200 at TRACE level.
Constructor and Description |
---|
Classpath() |
Modifier and Type | Method and Description |
---|---|
Outcome |
metainf(String path)
Serve static files from META-INF/resources in classpath.
|
Outcome |
resource(String path)
Serve static resources from classpath.
|
Outcome |
resource(String basepath, String path)
Serve static resources from classpath.
|
public Outcome metainf(String path)
If a directory is requested, filenames set in the werval.controllers.classpath.index
config property are used to find an index file. Default value is no index file support.
path
- Path of the requested resources, relative to META-INF/resources
public Outcome resource(String basepath, String path)
If a directory is requested, filenames set in the werval.controllers.classpath.index
config property are used to find an index file. Default value is no index file support.
basepath
- Base path of the requested resources, relative to the classpath root
path
- Path of the requested resources, relative to the basePath parameter
public Outcome resource(String path)
If a directory is requested, filenames set in the werval.controllers.classpath.index
config property are used to find an index file. Default value is no index file support.
path
- Path of the requested resource, relative to the classpath root