public class ControllerEndpointHandlerMapping extends RequestMappingHandlerMapping
HandlerMapping
that exposes @ControllerEndpoint
and
@RestControllerEndpoint
annotated endpoints over Spring
WebFlux.mappingsLogger
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 |
---|
ControllerEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableControllerEndpoint> endpoints,
CorsConfiguration corsConfiguration)
Create a new
ControllerEndpointHandlerMapping instance providing mappings
for the specified endpoints. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
hasCorsConfigurationSource(Object handler) |
protected CorsConfiguration |
initCorsConfiguration(Object handler,
Method method,
RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected void |
registerHandlerMethod(Object handler,
Method method,
RequestMappingInfo mapping) |
afterPropertiesSet, createRequestMappingInfo, getContentTypeResolver, getCustomMethodCondition, getCustomTypeCondition, getMappingForMethod, getPathPrefixes, isHandler, registerMapping, resolveEmbeddedValuesInPatterns, setContentTypeResolver, setEmbeddedValueResolver, setPathPrefixes
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, unregisterMapping
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
public ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, CorsConfiguration corsConfiguration)
ControllerEndpointHandlerMapping
instance providing mappings
for the specified endpoints.endpointMapping
- the base mapping for all endpointsendpoints
- the web endpointscorsConfiguration
- the CORS configuration for the endpoints or null
protected void initHandlerMethods()
initHandlerMethods
in class AbstractHandlerMethodMapping<RequestMappingInfo>
protected void registerHandlerMethod(Object handler, Method method, RequestMappingInfo mapping)
registerHandlerMethod
in class RequestMappingHandlerMapping
protected boolean hasCorsConfigurationSource(Object handler)
hasCorsConfigurationSource
in class AbstractHandlerMethodMapping<RequestMappingInfo>
protected CorsConfiguration initCorsConfiguration(Object handler, Method method, RequestMappingInfo mapping)
initCorsConfiguration
in class RequestMappingHandlerMapping