Builderpublic static class StaticContentSupport.Builder extends Object implements Builder
| Modifier and Type | Method | Description |
|---|---|---|
StaticContentSupport |
build() |
Builds new
StaticContentSupport instance. |
StaticContentSupport.Builder |
contentType(String filenameExtension,
MediaType contentType) |
Maps a filename extension to the response content type.
|
StaticContentSupport.Builder |
welcomeFileName(String welcomeFileName) |
Sets a name of the "file" which will be returned if directory is requested.
|
public StaticContentSupport.Builder welcomeFileName(String welcomeFileName)
welcomeFileName - a name of the welcome filepublic StaticContentSupport.Builder contentType(String filenameExtension, MediaType contentType)
filenameExtension - a filename extension. The part after the last {code dot '.'} in the name.contentType - a mapped content typeNullPointerException - if any parameter is nullIllegalArgumentException - if filenameExtension is emptypublic StaticContentSupport build()
StaticContentSupport instance.Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.