public class ControllerEndpointHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
HandlerMapping that exposes @ControllerEndpoint and
@RestControllerEndpoint annotated endpoints over Spring
MVC.| Constructor and Description |
|---|
ControllerEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableControllerEndpoint> endpoints,
org.springframework.web.cors.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 org.springframework.web.cors.CorsConfiguration |
initCorsConfiguration(Object handler,
Method method,
org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected void |
registerHandlerMethod(Object handler,
Method method,
org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping) |
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, getPathPrefixes, isHandler, match, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchgetMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchcreateHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextpublic ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, org.springframework.web.cors.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 org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>protected void registerHandlerMethod(Object handler, Method method, org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping)
registerHandlerMethod in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>protected org.springframework.web.cors.CorsConfiguration initCorsConfiguration(Object handler, Method method, org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping)
initCorsConfiguration in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMappingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.