static StaticContentSupport.Builder |
StaticContentSupport.builder(String resourceRoot) |
Creates new builder with defined static content root as a class-loader resource.
|
static StaticContentSupport.Builder |
StaticContentSupport.builder(String resourceRoot,
ClassLoader classLoader) |
Creates new builder with defined static content root as a class-loader resource.
|
static StaticContentSupport.Builder |
StaticContentSupport.builder(Path root) |
Creates new builder with defined static content root as a path to the file system.
|
StaticContentSupport.Builder |
StaticContentSupport.Builder.contentType(String filenameExtension,
MediaType contentType) |
Maps a filename extension to the response content type.
|
StaticContentSupport.Builder |
StaticContentSupport.Builder.welcomeFileName(String welcomeFileName) |
Sets a name of the "file" which will be returned if directory is requested.
|