public class WebFluxEndpointHandlerMapping extends AbstractWebFluxEndpointHandlerMapping implements InitializingBean
HandlerMapping
that makes web endpoints available over HTTP using
Spring WebFlux.AbstractWebFluxEndpointHandlerMapping.ElasticSchedulerInvoker, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation
logger
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableWebEndpoint> endpoints,
EndpointMediaTypes endpointMediaTypes,
CorsConfiguration corsConfiguration,
EndpointLinksResolver linksResolver)
Creates a new
WebFluxEndpointHandlerMapping instance that provides mappings
for the given endpoints. |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Map<String,Link>> |
links(ServerWebExchange exchange) |
getEndpoints, getMappingForMethod, initCorsConfiguration, initHandlerMethods, isHandler, wrapReactiveWebOperation
getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
afterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMapping
getCorsProcessor, getHandler, getOrder, getPathPatternParser, setCorsConfigurations, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterPropertiesSet
public WebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, CorsConfiguration corsConfiguration, EndpointLinksResolver linksResolver)
WebFluxEndpointHandlerMapping
instance that provides mappings
for the given endpoints.endpointMapping
- the base mapping for all endpointsendpoints
- the web endpointsendpointMediaTypes
- media types consumed and produced by the endpointscorsConfiguration
- the CORS configuration for the endpoints or null
linksResolver
- resolver for determining links to available endpoints@ResponseBody protected Map<String,Map<String,Link>> links(ServerWebExchange exchange)
links
in class AbstractWebFluxEndpointHandlerMapping
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.