类 ControllerEndpointHandlerMapping
- java.lang.Object
- org.springframework.context.support.ApplicationObjectSupport
- org.springframework.web.reactive.handler.AbstractHandlerMapping
- org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>
- org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
- org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
- org.springframework.boot.actuate.endpoint.web.reactive.ControllerEndpointHandlerMapping
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EmbeddedValueResolverAware
,org.springframework.core.Ordered
,org.springframework.web.reactive.HandlerMapping
public class ControllerEndpointHandlerMapping extends org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
HandlerMapping
that exposes@ControllerEndpoint
and@RestControllerEndpoint
annotated endpoints over Spring WebFlux.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, org.springframework.web.cors.CorsConfiguration corsConfiguration)
Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
从类继承的方法 org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping
afterPropertiesSet, createRequestMappingInfo, getContentTypeResolver, getCustomMethodCondition, getCustomTypeCondition, getMappingForMethod, getPathPrefixes, isHandler, resolveEmbeddedValuesInPatterns, setContentTypeResolver, setEmbeddedValueResolver, setPathPrefixes
从类继承的方法 org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
从类继承的方法 org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping
createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerMapping, unregisterMapping
从类继承的方法 org.springframework.web.reactive.handler.AbstractHandlerMapping
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
构造器详细资料
ControllerEndpointHandlerMapping
public ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, org.springframework.web.cors.CorsConfiguration corsConfiguration)
Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints.- 参数:
endpointMapping
- the base mapping for all endpointsendpoints
- the web endpointscorsConfiguration
- the CORS configuration for the endpoints ornull
方法详细资料
initHandlerMethods
protected void initHandlerMethods()
- 覆盖:
initHandlerMethods
在类中org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>
registerHandlerMethod
protected void registerHandlerMethod(Object handler, Method method, org.springframework.web.reactive.result.method.RequestMappingInfo mapping)
- 覆盖:
registerHandlerMethod
在类中org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>
initCorsConfiguration
protected org.springframework.web.cors.CorsConfiguration initCorsConfiguration(Object handler, Method method, org.springframework.web.reactive.result.method.RequestMappingInfo mapping)
- 覆盖:
initCorsConfiguration
在类中org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping