public class RoutePredicateHandlerMapping
extends org.springframework.web.reactive.handler.AbstractHandlerMapping
| Modifier and Type | Class and Description |
|---|---|
static class |
RoutePredicateHandlerMapping.ManagementPortType |
| Constructor and Description |
|---|
RoutePredicateHandlerMapping(FilteringWebHandler webHandler,
RouteLocator routeLocator,
GlobalCorsProperties globalCorsProperties,
org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.cors.CorsConfiguration |
getCorsConfiguration(Object handler,
org.springframework.web.server.ServerWebExchange exchange) |
protected reactor.core.publisher.Mono<?> |
getHandlerInternal(org.springframework.web.server.ServerWebExchange exchange) |
protected String |
getSimpleName() |
protected reactor.core.publisher.Mono<Route> |
lookupRoute(org.springframework.web.server.ServerWebExchange exchange) |
protected void |
validateRoute(Route route,
org.springframework.web.server.ServerWebExchange exchange)
Validate the given handler against the current request.
|
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, hasCorsConfigurationSource, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatchpublic RoutePredicateHandlerMapping(FilteringWebHandler webHandler, RouteLocator routeLocator, GlobalCorsProperties globalCorsProperties, org.springframework.core.env.Environment environment)
protected reactor.core.publisher.Mono<?> getHandlerInternal(org.springframework.web.server.ServerWebExchange exchange)
getHandlerInternal in class org.springframework.web.reactive.handler.AbstractHandlerMappingprotected org.springframework.web.cors.CorsConfiguration getCorsConfiguration(Object handler, org.springframework.web.server.ServerWebExchange exchange)
getCorsConfiguration in class org.springframework.web.reactive.handler.AbstractHandlerMappingprotected reactor.core.publisher.Mono<Route> lookupRoute(org.springframework.web.server.ServerWebExchange exchange)
protected void validateRoute(Route route, org.springframework.web.server.ServerWebExchange exchange)
The default implementation is empty. Can be overridden in subclasses, for example to enforce specific preconditions expressed in URL mappings.
route - the Route object to validateexchange - current exchangeException - if validation failedprotected String getSimpleName()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.