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