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, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
public 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.AbstractHandlerMapping
protected org.springframework.web.cors.CorsConfiguration getCorsConfiguration(Object handler, org.springframework.web.server.ServerWebExchange exchange)
getCorsConfiguration
in class org.springframework.web.reactive.handler.AbstractHandlerMapping
protected 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 © 2020 Pivotal Software, Inc.. All rights reserved.