public abstract class AbstractWebFluxEndpointHandlerMapping
extends org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
HandlerMapping that makes web endpoints available over HTTP using
Spring WebFlux.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractWebFluxEndpointHandlerMapping.ElasticSchedulerInvoker
An
OperationInvoker that performs the invocation of a blocking operation on
a separate thread using Reactor's bounded
elastic scheduler. |
protected static interface |
AbstractWebFluxEndpointHandlerMapping.LinksHandler
Reactive handler providing actuator links at the root endpoint.
|
protected static interface |
AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation
A reactive web operation that can be handled by WebFlux.
|
mappingsLogger| Constructor and Description |
|---|
AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
java.util.Collection<ExposableWebEndpoint> endpoints,
EndpointMediaTypes endpointMediaTypes,
org.springframework.web.cors.CorsConfiguration corsConfiguration,
boolean shouldRegisterLinksMapping)
Creates a new
AbstractWebFluxEndpointHandlerMapping that provides mappings
for the operations of the given webEndpoints. |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.method.HandlerMethod |
createHandlerMethod(java.lang.Object handler,
java.lang.reflect.Method method) |
java.util.Collection<ExposableWebEndpoint> |
getEndpoints()
Return the web endpoints being mapped.
|
protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandler |
getLinksHandler()
Return the Handler providing actuator links at the root endpoint.
|
protected org.springframework.web.reactive.result.method.RequestMappingInfo |
getMappingForMethod(java.lang.reflect.Method method,
java.lang.Class<?> handlerType) |
protected boolean |
hasCorsConfigurationSource(java.lang.Object handler) |
protected org.springframework.web.cors.CorsConfiguration |
initCorsConfiguration(java.lang.Object handler,
java.lang.reflect.Method method,
org.springframework.web.reactive.result.method.RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected boolean |
isHandler(java.lang.Class<?> beanType) |
protected void |
registerReadMapping(org.springframework.web.reactive.result.method.RequestMappingInfo requestMappingInfo,
ExposableWebEndpoint endpoint,
WebOperation operation) |
protected AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation |
wrapReactiveWebOperation(ExposableWebEndpoint endpoint,
WebOperation operation,
AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation)
Hook point that allows subclasses to wrap the
AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation before
it's called. |
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatchafterPropertiesSet, detectHandlerMethods, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMappingformatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatchpublic AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, java.util.Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, org.springframework.web.cors.CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping)
AbstractWebFluxEndpointHandlerMapping that provides mappings
for the operations of the given webEndpoints.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 registeredprotected void initHandlerMethods()
initHandlerMethods in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected org.springframework.web.method.HandlerMethod createHandlerMethod(java.lang.Object handler,
java.lang.reflect.Method method)
createHandlerMethod in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected void registerReadMapping(org.springframework.web.reactive.result.method.RequestMappingInfo requestMappingInfo,
ExposableWebEndpoint endpoint,
WebOperation operation)
protected AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation wrapReactiveWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation)
AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation before
it's called. Allows additional features, such as security, to be added.endpoint - the source endpointoperation - the source operationreactiveWebOperation - the reactive web operation to wrapprotected boolean hasCorsConfigurationSource(java.lang.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(java.lang.Object handler,
java.lang.reflect.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(java.lang.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(java.lang.reflect.Method method,
java.lang.Class<?> handlerType)
getMappingForMethod in class org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<org.springframework.web.reactive.result.method.RequestMappingInfo>protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandler getLinksHandler()
public java.util.Collection<ExposableWebEndpoint> getEndpoints()