public class RoutePredicateHandlerMapping
extends org.springframework.web.reactive.handler.AbstractHandlerMapping
Constructor and Description |
---|
RoutePredicateHandlerMapping(FilteringWebHandler webHandler,
RouteLocator routeLocator) |
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Mono<?> |
getHandlerInternal(org.springframework.web.server.ServerWebExchange exchange) |
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.
|
getCorsConfiguration, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setCorsConfigurations, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
public RoutePredicateHandlerMapping(FilteringWebHandler webHandler, RouteLocator routeLocator)
protected reactor.core.publisher.Mono<?> getHandlerInternal(org.springframework.web.server.ServerWebExchange exchange)
getHandlerInternal
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 failedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.