Package | Description |
---|---|
org.springframework.test.web.servlet.client |
Support for testing Spring MVC applications via
WebTestClient
with MockMvc for server request
handling. |
org.springframework.test.web.servlet.setup |
Contains built-in
MockMvcBuilder implementations. |
org.springframework.web.cors |
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework for Reactive environments.
|
org.springframework.web.reactive.handler |
Provides HandlerMapping implementations including abstract base classes.
|
org.springframework.web.reactive.result.method |
Infrastructure for handler method processing.
|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
org.springframework.web.servlet.function |
Provides the types that make up Spring's functional web framework for Servlet environments.
|
org.springframework.web.servlet.handler |
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
|
org.springframework.web.servlet.mvc |
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
|
org.springframework.web.servlet.mvc.condition |
Common MVC logic for matching incoming requests based on conditions.
|
org.springframework.web.servlet.mvc.method |
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package. |
org.springframework.web.util.pattern |
Dedicated support for matching HTTP request paths.
|
Modifier and Type | Method and Description |
---|---|
MockMvcWebTestClient.ControllerSpec |
MockMvcWebTestClient.ControllerSpec.patternParser(PathPatternParser parser)
Enable URL path matching with parsed
PathPatterns . |
Modifier and Type | Method and Description |
---|---|
void |
StandaloneMockMvcBuilder.setPatternParser(PathPatternParser parser)
Enable URL path matching with parsed
PathPatterns
instead of String pattern matching with a PathMatcher . |
Constructor and Description |
---|
UrlBasedCorsConfigurationSource(PathPatternParser parser)
Constructor with a
PathPatternParser to parse patterns with. |
Constructor and Description |
---|
UrlBasedCorsConfigurationSource(PathPatternParser patternParser)
Construct a new
UrlBasedCorsConfigurationSource instance from the supplied
PathPatternParser . |
Modifier and Type | Method and Description |
---|---|
static <T extends ServerResponse> |
RouterFunctions.changeParser(RouterFunction<T> routerFunction,
PathPatternParser parser)
Changes the
PathPatternParser on the given router function. |
static Function<String,RequestPredicate> |
RequestPredicates.pathPredicates(PathPatternParser patternParser)
Return a function that creates new path-matching
RequestPredicates
from pattern Strings using the given PathPatternParser . |
Modifier and Type | Method and Description |
---|---|
PathPatternParser |
AbstractHandlerMapping.getPathPatternParser()
Return the
PathPatternParser instance that is used for
CORS configuration checks . |
Modifier and Type | Method and Description |
---|---|
PathPatternParser |
RequestMappingInfo.BuilderConfiguration.getPatternParser() |
Modifier and Type | Method and Description |
---|---|
void |
RequestMappingInfo.BuilderConfiguration.setPatternParser(PathPatternParser patternParser) |
Modifier and Type | Method and Description |
---|---|
PathPatternParser |
PathMatchConfigurer.getPatternParser()
Return the
PathPatternParser to use, if configured. |
Modifier and Type | Method and Description |
---|---|
PathMatchConfigurer |
PathMatchConfigurer.setPatternParser(PathPatternParser patternParser)
Enable use of parsed
PathPattern s as described in
AbstractHandlerMapping.setPatternParser(PathPatternParser) . |
Modifier and Type | Method and Description |
---|---|
static <T extends ServerResponse> |
RouterFunctions.changeParser(RouterFunction<T> routerFunction,
PathPatternParser parser)
Changes the
PathPatternParser on the given router function. |
static Function<String,RequestPredicate> |
RequestPredicates.pathPredicates(PathPatternParser patternParser)
Return a function that creates new path-matching
RequestPredicates
from pattern Strings using the given PathPatternParser . |
Modifier and Type | Method and Description |
---|---|
default PathPatternParser |
MatchableHandlerMapping.getPatternParser()
Return the parser of this
HandlerMapping , if configured in which
case pre-parsed patterns are used. |
PathPatternParser |
AbstractHandlerMapping.getPatternParser()
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractHandlerMapping.setPatternParser(PathPatternParser patternParser)
Enable use of pre-parsed
PathPattern s as an alternative to
String pattern matching with AntPathMatcher . |
Constructor and Description |
---|
MappedInterceptor(String[] includePatterns,
String[] excludePatterns,
HandlerInterceptor interceptor,
PathPatternParser parser)
Create an instance with the given include and exclude patterns along with
the target interceptor for the mappings.
|
Constructor and Description |
---|
WebContentInterceptor(PathPatternParser parser)
Constructor with a
PathPatternParser to parse patterns with. |
Constructor and Description |
---|
PathPatternsRequestCondition(PathPatternParser parser,
String... patterns)
Constructor with patterns to use.
|
Modifier and Type | Method and Description |
---|---|
PathPatternParser |
RequestMappingInfo.BuilderConfiguration.getPatternParser()
|
Modifier and Type | Method and Description |
---|---|
void |
RequestMappingInfo.BuilderConfiguration.setPatternParser(PathPatternParser patternParser)
Enable use of parsed
PathPattern s as described in
AbstractHandlerMapping.setPatternParser(PathPatternParser) . |
Modifier and Type | Field and Description |
---|---|
static PathPatternParser |
PathPatternParser.defaultInstance
Shared, read-only instance of
PathPatternParser . |
Constructor and Description |
---|
PathPatternRouteMatcher(PathPatternParser parser)
Constructor with given
PathPatternParser . |