public class ControllerEndpointHandlerMapping
extends org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
HandlerMapping that exposes @ControllerEndpoint and
@RestControllerEndpoint annotated endpoints over Spring
WebFlux.| Constructor and Description |
|---|
ControllerEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableControllerEndpoint> endpoints,
org.springframework.web.cors.CorsConfiguration corsConfiguration)
Create a new
ControllerEndpointHandlerMapping instance providing mappings
for the specified endpoints. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasCorsConfigurationSource(Object handler) |
protected org.springframework.web.cors.CorsConfiguration |
initCorsConfiguration(Object handler,
Method method,
org.springframework.web.reactive.result.method.RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected void |
registerHandlerMethod(Object handler,
Method method,
org.springframework.web.reactive.result.method.RequestMappingInfo mapping) |
afterPropertiesSet, createRequestMappingInfo, getContentTypeResolver, getCustomMethodCondition, getCustomTypeCondition, getHandlerInternal, getMappingForMethod, getPathPrefixes, isHandler, registerMapping, resolveEmbeddedValuesInPatterns, setContentTypeResolver, setEmbeddedValueResolver, setPathPrefixesgetMappingComparator, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, unregisterMappingformatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatchpublic ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, org.springframework.web.cors.CorsConfiguration corsConfiguration)
ControllerEndpointHandlerMapping instance providing mappings
for the specified endpoints.endpointMapping - the base mapping for all endpointsendpoints - the web endpointscorsConfiguration - the CORS configuration for the endpoints or nullprotected void initHandlerMethods()
initHandlerMethods in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected void registerHandlerMethod(Object handler, Method method, org.springframework.web.reactive.result.method.RequestMappingInfo mapping)
registerHandlerMethod in class org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMappingprotected boolean hasCorsConfigurationSource(Object handler)
hasCorsConfigurationSource in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected org.springframework.web.cors.CorsConfiguration initCorsConfiguration(Object handler, Method method, org.springframework.web.reactive.result.method.RequestMappingInfo mapping)
initCorsConfiguration in class org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMappingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.