public class ControllerEndpointHandlerMapping extends RequestMappingHandlerMapping
HandlerMapping that exposes @ControllerEndpoint and
@RestControllerEndpoint annotated endpoints over Spring
MVC.loggerBEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTEHIGHEST_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 void |
extendInterceptors(List<Object> interceptors) |
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, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, getPathPrefixes, isHandler, match, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, formatMappingName, getAdaptedInterceptors, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandlerpublic 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 nullprotected void initHandlerMethods()
initHandlerMethods in class AbstractHandlerMethodMapping<RequestMappingInfo>protected void registerHandlerMethod(Object handler, Method method, RequestMappingInfo mapping)
registerHandlerMethod in class RequestMappingHandlerMappingprotected boolean hasCorsConfigurationSource(Object handler)
hasCorsConfigurationSource in class AbstractHandlerMethodMapping<RequestMappingInfo>protected CorsConfiguration initCorsConfiguration(Object handler, Method method, RequestMappingInfo mapping)
initCorsConfiguration in class RequestMappingHandlerMappingprotected void extendInterceptors(List<Object> interceptors)
extendInterceptors in class AbstractHandlerMappingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.