static StaticContentSupport.Builder |
StaticContentSupport.builder(String resourceRoot) |
Deprecated, for removal: This API element is subject to removal in a future version.
Creates new builder with defined static content root as a class-loader resource.
|
static StaticContentSupport.Builder |
StaticContentSupport.builder(String resourceRoot,
ClassLoader classLoader) |
Deprecated, for removal: This API element is subject to removal in a future version.
Creates new builder with defined static content root as a class-loader resource.
|
static StaticContentSupport.Builder |
StaticContentSupport.builder(Path root) |
Deprecated, for removal: This API element is subject to removal in a future version.
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.tmpDir(Path tmpDir) |
Sets custom temporary folder for extracting static content from a jar.
|
StaticContentSupport.Builder |
StaticContentSupport.Builder.welcomeFileName(String welcomeFileName) |
Sets a name of the "file" which will be returned if directory is requested.
|