类 ControllerEndpointHandlerMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<RequestMappingInfo>
org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
org.springframework.boot.actuate.endpoint.web.servlet.ControllerEndpointHandlerMapping
- 所有已实现的接口:
Aware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,EmbeddedValueResolverAware
,Ordered
,ServletContextAware
,MatchableHandlerMapping
,HandlerMapping
@Deprecated(since="3.3.5",
forRemoval=true)
public class ControllerEndpointHandlerMapping
extends RequestMappingHandlerMapping
已过时, 待删除: 此 API 元素将从以后的版本中删除。
HandlerMapping
that exposes
@ControllerEndpoint
and
@RestControllerEndpoint
annotated endpoints over Spring MVC.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
字段概要
从类继承的字段 org.springframework.web.servlet.handler.AbstractHandlerMapping
mappingsLogger
从类继承的字段 org.springframework.context.support.ApplicationObjectSupport
logger
从接口继承的字段 org.springframework.web.servlet.HandlerMapping
BEST_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_ATTRIBUTE
从接口继承的字段 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
构造器概要
构造器构造器说明ControllerEndpointHandlerMapping
(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, CorsConfiguration corsConfiguration) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints.ControllerEndpointHandlerMapping
(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, CorsConfiguration corsConfiguration, EndpointAccessResolver endpointAccessResolver) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints. -
方法概要
修饰符和类型方法说明protected void
extendInterceptors
(List<Object> interceptors) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected boolean
hasCorsConfigurationSource
(Object handler) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected CorsConfiguration
initCorsConfiguration
(Object handler, Method method, RequestMappingInfo mapping) 已过时, 待删除: 此 API 元素将从以后的版本中删除。protected void
已过时, 待删除: 此 API 元素将从以后的版本中删除。protected void
registerHandlerMethod
(Object handler, Method method, RequestMappingInfo mapping) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类继承的方法 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
afterPropertiesSet, createRequestMappingInfo, createRequestMappingInfo, getBuilderConfiguration, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, getPathPrefixes, isHandler, match, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setPatternParser, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatch
从类继承的方法 org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
getDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatch
从类继承的方法 org.springframework.web.servlet.handler.AbstractHandlerMethodMapping
createHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMapping
从类继承的方法 org.springframework.web.servlet.handler.AbstractHandlerMapping
adaptInterceptor, detectMappedInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatterns
从类继承的方法 org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
从类继承的方法 org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.servlet.HandlerMapping
getHandler, usesPathPatterns
从接口继承的方法 org.springframework.web.servlet.handler.MatchableHandlerMapping
getPatternParser
-
构造器详细资料
-
ControllerEndpointHandlerMapping
public ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, CorsConfiguration corsConfiguration) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints.- 参数:
endpointMapping
- the base mapping for all endpointsendpoints
- the web endpointscorsConfiguration
- the CORS configuration for the endpoints ornull
-
ControllerEndpointHandlerMapping
public ControllerEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableControllerEndpoint> endpoints, CorsConfiguration corsConfiguration, EndpointAccessResolver endpointAccessResolver) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointHandlerMapping
instance providing mappings for the specified endpoints.- 参数:
endpointMapping
- the base mapping for all endpointsendpoints
- the web endpointscorsConfiguration
- the CORS configuration for the endpoints ornull
endpointAccessResolver
- resolver for endpoint access
-
-
方法详细资料
-
initHandlerMethods
protected void initHandlerMethods()已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
registerHandlerMethod
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
hasCorsConfigurationSource
已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
initCorsConfiguration
protected CorsConfiguration initCorsConfiguration(Object handler, Method method, RequestMappingInfo mapping) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
extendInterceptors
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
@Endpoint
and@WebEndpoint
support