类 AbstractWebFluxEndpointHandlerMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.reactive.handler.AbstractHandlerMapping
org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<RequestMappingInfo>
org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping
- 所有已实现的接口:
Aware,BeanNameAware,InitializingBean,ApplicationContextAware,Ordered,HandlerMapping
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping.AbstractWebFluxEndpointHandlerMappingRuntimeHints.class)
public abstract class AbstractWebFluxEndpointHandlerMapping
extends RequestMappingInfoHandlerMapping
A custom
HandlerMapping that makes web endpoints available over HTTP using
Spring WebFlux.- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Madhura Bhave, Phillip Webb, Brian Clozel, Scott Frederick
-
嵌套类概要
嵌套类修饰符和类型类说明protected static final classAnOperationInvokerthat performs the invocation of a blocking operation on a separate thread using Reactor'sbounded elastic scheduler.protected static final classprotected static interfaceReactive handler providing actuator links at the root endpoint.protected static interfaceA reactive web operation that can be handled by WebFlux. -
字段概要
从类继承的字段 org.springframework.web.reactive.handler.AbstractHandlerMapping
mappingsLogger从类继承的字段 org.springframework.context.support.ApplicationObjectSupport
logger从接口继承的字段 org.springframework.web.reactive.HandlerMapping
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) Creates a newAbstractWebFluxEndpointHandlerMappingthat provides mappings for the operations of the givenwebEndpoints. -
方法概要
修饰符和类型方法说明protected HandlerMethodcreateHandlerMethod(Object handler, Method method) Return the web endpoints being mapped.protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandlerReturn the Handler providing actuator links at the root endpoint.protected RequestMappingInfogetMappingForMethod(Method method, Class<?> handlerType) protected booleanhasCorsConfigurationSource(Object handler) protected CorsConfigurationinitCorsConfiguration(Object handler, Method method, RequestMappingInfo mapping) protected voidprotected booleanprotected voidregisterReadMapping(RequestMappingInfo requestMappingInfo, ExposableWebEndpoint endpoint, WebOperation operation) wrapReactiveWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation) Hook point that allows subclasses to wrap theAbstractWebFluxEndpointHandlerMapping.ReactiveWebOperationbefore it's called.从类继承的方法 org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch从类继承的方法 org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping
afterPropertiesSet, detectHandlerMethods, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMapping从类继承的方法 org.springframework.web.reactive.handler.AbstractHandlerMapping
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch从类继承的方法 org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
-
构造器详细资料
-
AbstractWebFluxEndpointHandlerMapping
public AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) Creates a newAbstractWebFluxEndpointHandlerMappingthat provides mappings for the operations of the givenwebEndpoints.- 参数:
endpointMapping- the base mapping for all endpointsendpoints- the web endpointsendpointMediaTypes- media types consumed and produced by the endpointscorsConfiguration- the CORS configuration for the endpointsshouldRegisterLinksMapping- whether the links endpoint should be registered
-
-
方法详细资料
-
initHandlerMethods
protected void initHandlerMethods() -
createHandlerMethod
-
registerReadMapping
protected void registerReadMapping(RequestMappingInfo requestMappingInfo, ExposableWebEndpoint endpoint, WebOperation operation) -
wrapReactiveWebOperation
protected AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation wrapReactiveWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation) Hook point that allows subclasses to wrap theAbstractWebFluxEndpointHandlerMapping.ReactiveWebOperationbefore it's called. Allows additional features, such as security, to be added.- 参数:
endpoint- the source endpointoperation- the source operationreactiveWebOperation- the reactive web operation to wrap- 返回:
- a wrapped reactive web operation
-
hasCorsConfigurationSource
-
initCorsConfiguration
protected CorsConfiguration initCorsConfiguration(Object handler, Method method, RequestMappingInfo mapping) -
isHandler
-
getMappingForMethod
-
getLinksHandler
Return the Handler providing actuator links at the root endpoint.- 返回:
- the links handler
-
getEndpoints
Return the web endpoints being mapped.- 返回:
- the endpoints
-