Package org.springframework.web.filter
Interface UrlHandlerFilter.Builder
- Enclosing class:
- UrlHandlerFilter
public static interface UrlHandlerFilter.Builder
Builder for
UrlHandlerFilter
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A spec to configure a trailing slash handler. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theUrlHandlerFilter
instance.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 theUrlHandlerFilter
instance.
-