Class MvcRequestMatcher.Builder
java.lang.Object
org.springframework.security.web.servlet.util.matcher.MvcRequestMatcher.Builder
- Enclosing class:
- MvcRequestMatcher
A builder for
MvcRequestMatcher
- Since:
- 5.8
-
Constructor Summary
ConstructorDescriptionBuilder
(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) Construct a new instance of this builder -
Method Summary
Modifier and TypeMethodDescriptionCreates anMvcRequestMatcher
that uses the provided pattern to matchCreates anMvcRequestMatcher
that uses the provided pattern and HTTP method to matchservletPath
(String servletPath) Sets the servlet path to be used by theMvcRequestMatcher
generated by this builder
-
Constructor Details
-
Builder
public Builder(org.springframework.web.servlet.handler.HandlerMappingIntrospector introspector) Construct a new instance of this builder
-
-
Method Details
-
servletPath
Sets the servlet path to be used by theMvcRequestMatcher
generated by this builder- Parameters:
servletPath
- the servlet path to use- Returns:
- the
MvcRequestMatcher.Builder
for further configuration
-
pattern
Creates anMvcRequestMatcher
that uses the provided pattern to match- Parameters:
pattern
- the pattern used to match- Returns:
- the generated
MvcRequestMatcher
-
pattern
Creates anMvcRequestMatcher
that uses the provided pattern and HTTP method to match- Parameters:
method
- theHttpMethod
, can be nullpattern
- the patterns used to match- Returns:
- the generated
MvcRequestMatcher
-