public class WebFluxEndpointHandlerMapping
extends org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
implements org.springframework.beans.factory.InitializingBean
HandlerMapping that makes web endpoints available over HTTP using
Spring WebFlux.| Constructor and Description |
|---|
WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebEndpointOperation>> collection)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints. |
WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebEndpointOperation>> webEndpoints,
org.springframework.web.cors.CorsConfiguration corsConfiguration)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.reactive.result.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected org.springframework.web.cors.CorsConfiguration |
initCorsConfiguration(Object handler,
Method method,
org.springframework.web.reactive.result.method.RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected boolean |
isHandler(Class<?> beanType) |
getMappingComparator, getMatchingMapping, handleMatch, handleNoMatchafterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMappinggetCorsProcessor, getHandler, getOrder, getPathPatternParser, setCorsConfigurations, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatchgetApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContextpublic WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebEndpointOperation>> collection)
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints.endpointMapping - the base mapping for all endpointscollection - the web endpointspublic WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebEndpointOperation>> webEndpoints, org.springframework.web.cors.CorsConfiguration corsConfiguration)
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints.endpointMapping - the path beneath which all endpoints should be mappedwebEndpoints - the web endpointscorsConfiguration - the CORS configuration for the endpointsprotected void initHandlerMethods()
initHandlerMethods 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.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected boolean isHandler(Class<?> beanType)
isHandler in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected org.springframework.web.reactive.result.method.RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>Copyright © 2017 Pivotal Software, Inc.. All rights reserved.