org.springframework.web.reactive.HandlerMapping
implementations.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private CorsConfigurationSource | |
| private CorsProcessor | |
| protected final Log | mappingsLogger
Dedicated "hidden" logger for request mappings. |
| private static final WebHandler | |
| private int | |
| private final PathPatternParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected CorsConfiguration | Returns: the CORS configuration for the handler, ornull if nonethe handler to check (never handler, ServerWebExchange null)the current exchange exchange)Retrieve the CORS configuration for the given handler. |
| public CorsProcessor | |
| public Mono | getHandler(ServerWebExchange
current server exchange exchange)Implements org. Return a handler for this request. |
| protected abstract Mono | Returns: Mono for the matching handler, if anycurrent exchange exchange)Look up a handler for the given request, returning an empty |
| public int | |
| public PathPatternParser | getPathPatternParser()
Return the |
| protected boolean | hasCorsConfigurationSource(Object handler)
Return |
| public void | setBeanName(String
the name of the bean in the factory.
Note that this name is the actual bean name used in the factory, which may
differ from the originally specified name: in particular for inner bean
names, the actual bean name might have been made unique through appending
"#..." suffixes. Use the name)BeanFactoryUtils#originalBeanName(String)
method to extract the original bean name (without suffix), if desired.Implements org. Set the name of the bean in the bean factory that created this bean. |
| public void | setCorsConfigurations(Map<String, CorsConfiguration> corsConfigurations)
Set the "global" CORS configurations based on URL patterns. |
| public void | setCorsConfigurationSource(CorsConfigurationSource corsConfigurationSource)
Set the "global" CORS configuration source. |
| public void | setCorsProcessor(CorsProcessor corsProcessor)
Configure a custom |
| public void | |
| public void | setUseCaseSensitiveMatch(boolean caseSensitiveMatch)
Shortcut method for setting the same property on the underlying pattern parser in use. |
| public void | setUseTrailingSlashMatch(boolean trailingSlashMatch)
Deprecated
since 6.0. as of 6.0, see
PathPatternParser#setMatchOptionalTrailingSeparator(boolean)
Shortcut method for setting the same property on the underlying pattern parser in use. |
| beanName | back to summary |
|---|---|
| private String beanName
| |
| corsConfigurationSource | back to summary |
|---|---|
| private CorsConfigurationSource corsConfigurationSource
| |
| corsProcessor | back to summary |
|---|---|
| private CorsProcessor corsProcessor | |
| mappingsLogger | back to summary |
|---|---|
| protected final Log mappingsLogger Dedicated "hidden" logger for request mappings. | |
| NO_OP_HANDLER | back to summary |
|---|---|
| private static final WebHandler NO_OP_HANDLER | |
| order | back to summary |
|---|---|
| private int order | |
| patternParser | back to summary |
|---|---|
| private final PathPatternParser patternParser | |
| AbstractHandlerMapping | back to summary |
|---|---|
| public AbstractHandlerMapping() | |
| formatMappingName | back to summary |
|---|---|
| protected String formatMappingName() | |
| getCorsConfiguration | back to summary |
|---|---|
| protected CorsConfiguration getCorsConfiguration(Object handler, ServerWebExchange exchange) Retrieve the CORS configuration for the given handler.
| |
| getCorsProcessor | back to summary |
|---|---|
| public CorsProcessor getCorsProcessor() Return the configured | |
| getHandler | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Return a handler for this request. Before returning a handler, an implementing method should check for CORS configuration associated with the handler, apply validation checks based on it, and update the response accordingly. For pre-flight requests, the same should be done based on the handler matching to the expected actual request.
| |
| getHandlerInternal | back to summary |
|---|---|
| protected abstract Mono Look up a handler for the given request, returning an empty On CORS pre-flight requests this method should return a match not for the pre-flight request but for the expected actual request based on the URL path, the HTTP methods from the "Access-Control-Request-Method" header, and the headers from the "Access-Control-Request-Headers" header.
| |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| getPathPatternParser | back to summary |
|---|---|
| public PathPatternParser getPathPatternParser() Return the | |
| hasCorsConfigurationSource | back to summary |
|---|---|
| protected boolean hasCorsConfigurationSource(Object handler) Return
| |
| setBeanName | back to summary |
|---|---|
| public void setBeanName(String name) Implements org. Doc from org. Set the name of the bean in the bean factory that created this bean. Invoked after population of normal bean properties but before an
init callback such as
| |
| setCorsConfigurations | back to summary |
|---|---|
| public void setCorsConfigurations(Map<String, CorsConfiguration> corsConfigurations) Set the "global" CORS configurations based on URL patterns. By default, the first matching URL pattern is combined with handler-level CORS configuration if any. | |
| setCorsConfigurationSource | back to summary |
|---|---|
| public void setCorsConfigurationSource(CorsConfigurationSource corsConfigurationSource) Set the "global" CORS configuration source. By default, the first matching URL pattern is combined with the CORS configuration for the handler, if any.
| |
| setCorsProcessor | back to summary |
|---|---|
| public void setCorsProcessor(CorsProcessor corsProcessor) Configure a custom By default an instance of | |
| setOrder | back to summary |
|---|---|
| public void setOrder(int order) Specify the order value for this HandlerMapping bean. The default value is | |
| setUseCaseSensitiveMatch | back to summary |
|---|---|
| public void setUseCaseSensitiveMatch(boolean caseSensitiveMatch) Shortcut method for setting the same property on the underlying pattern parser in use. For more details see:
Note aside from | |
| setUseTrailingSlashMatch | back to summary |
|---|---|
| public void setUseTrailingSlashMatch(boolean trailingSlashMatch)
Shortcut method for setting the same property on the underlying pattern parser in use. For more details see:
The default was changed in 6.0 from
| |