open class UrlFilenameViewController : AbstractUrlViewController
Simple Controller implementation that transforms the virtual path of a URL into a view name and returns that view.
Can optionally prepend a prefix and/or append a suffix to build the viewname from the URL filename.
Find some examples below:
"/index" -> "index""/index.html" -> "index""/index.html" + prefix "pre_" and suffix "_suf" -> "pre_index_suf""/products/view.html" -> "products/view"Thanks to David Barri for suggesting prefix/suffix support!
Author
Alef Arendsen
Author
Juergen Hoeller
Author
Rob Harrop
See Also
#setPrefix#setSuffix
UrlFilenameViewController()
Simple Can optionally prepend a Find some examples below:
Thanks to David Barri for suggesting prefix/suffix support! |
open fun setPrefix(prefix: String): Unit
Set the prefix to prepend to the request URL filename to build a view name. |
|
open fun setSuffix(suffix: String): Unit
Set the suffix to append to the request URL filename to build a view name. |