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.ElasticSchedulerOperationInvoker
An
OperationInvoker that performs the invocation of a blocking operation on
a separate thread using Reactor's elastic scheduler . |
Constructor and Description |
---|
AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebOperation>> collection,
EndpointMediaTypes endpointMediaTypes)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints . |
AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebOperation>> webEndpoints,
EndpointMediaTypes endpointMediaTypes,
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 |
createRequestMappingInfo(WebOperation operationInfo) |
Collection<EndpointInfo<WebOperation>> |
getEndpoints() |
protected abstract Method |
getLinks() |
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) |
protected abstract void |
registerMappingForOperation(WebOperation operation) |
getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
afterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMapping
getCorsProcessor, getHandler, getOrder, getPathPatternParser, setCorsConfigurations, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
public AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebOperation>> collection, EndpointMediaTypes endpointMediaTypes)
WebEndpointHandlerMapping
that provides mappings for the
operations of the given webEndpoints
.endpointMapping
- the base mapping for all endpointscollection
- the web endpointsendpointMediaTypes
- media types consumed and produced by the endpointspublic AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebOperation>> webEndpoints, EndpointMediaTypes endpointMediaTypes, org.springframework.web.cors.CorsConfiguration corsConfiguration)
WebEndpointHandlerMapping
that provides mappings for the
operations of the given webEndpoints
.endpointMapping
- the base mapping for all endpointswebEndpoints
- the web endpointsendpointMediaTypes
- media types consumed and produced by the 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.reactive.result.method.RequestMappingInfo createRequestMappingInfo(WebOperation operationInfo)
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>
public Collection<EndpointInfo<WebOperation>> getEndpoints()
protected abstract Method getLinks()
protected abstract void registerMappingForOperation(WebOperation operation)
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.