public abstract class AbstractWebMvcEndpointHandlerMapping
extends org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
implements org.springframework.beans.factory.InitializingBean
HandlerMapping
that makes web endpoints available over HTTP using
Spring MVC.Constructor and Description |
---|
AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebEndpointOperation>> collection)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints . |
AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebEndpointOperation>> webEndpoints,
org.springframework.web.cors.CorsConfiguration corsConfiguration)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints . |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
createRequestMappingInfo(WebEndpointOperation operationInfo) |
protected void |
extendInterceptors(List<Object> interceptors) |
EndpointMapping |
getEndpointMapping() |
Collection<EndpointInfo<WebEndpointOperation>> |
getEndpoints() |
protected abstract Method |
getLinks() |
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo |
getMappingForMethod(Method method,
Class<?> handlerType) |
protected org.springframework.web.cors.CorsConfiguration |
initCorsConfiguration(Object handler,
Method method,
org.springframework.web.servlet.mvc.method.RequestMappingInfo mapping) |
protected void |
initHandlerMethods() |
protected boolean |
isHandler(Class<?> beanType) |
protected abstract void |
registerMappingForOperation(WebEndpointOperation operation) |
getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatch
afterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMapping
adaptInterceptor, detectMappedInterceptors, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setCorsConfigurations, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
public AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebEndpointOperation>> collection)
WebEndpointHandlerMapping
that provides mappings for the
operations of the given webEndpoints
.endpointMapping
- the base mapping for all endpointscollection
- the web endpoints operationspublic AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebEndpointOperation>> webEndpoints, org.springframework.web.cors.CorsConfiguration corsConfiguration)
WebEndpointHandlerMapping
that provides mappings for the
operations of the given webEndpoints
.endpointMapping
- the base mapping for all endpointswebEndpoints
- the web endpointscorsConfiguration
- the CORS configuration for the endpointspublic Collection<EndpointInfo<WebEndpointOperation>> getEndpoints()
public EndpointMapping getEndpointMapping()
protected void initHandlerMethods()
initHandlerMethods
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.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
protected abstract Method getLinks()
protected abstract void registerMappingForOperation(WebEndpointOperation operation)
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo createRequestMappingInfo(WebEndpointOperation operationInfo)
protected boolean isHandler(Class<?> beanType)
isHandler
in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType)
getMappingForMethod
in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.