Interface urlHandlerFilter.Builder
- Enclosing class:
urlHandlerFilter
public static interface urlHandlerFilter.Builder
Builder for
urlHandlerFilter.- Since:
- 6.2
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA spec to configure a trailing slash handler. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theurlHandlerFilterinstance.trailingSlashHandler(String... pathPatterns) Add a handler for url's with a trailing slash.
-
Method Details
-
trailingSlashHandler
Add a handler for url's with a trailing slash.- Parameters:
pathPatterns- path patterns to map the handler to, for example,"/path/*","/path/**","/path/foo/".- Returns:
- a spec to configure the handler with
-
build
urlHandlerFilter build()Build theurlHandlerFilterinstance.
-