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<WebOperation>> collection,
EndpointMediaTypes endpointMediaTypes)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints . |
AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<EndpointInfo<WebOperation>> webEndpoints,
EndpointMediaTypes endpointMediaTypes,
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(WebOperation operationInfo) |
protected void |
extendInterceptors(List<Object> interceptors) |
EndpointMapping |
getEndpointMapping() |
Collection<EndpointInfo<WebOperation>> |
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(WebOperation 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<WebOperation>> collection, EndpointMediaTypes endpointMediaTypes)
WebEndpointHandlerMapping
that provides mappings for the
operations of the given webEndpoints
.endpointMapping
- the base mapping for all endpointscollection
- the web endpoints operationsendpointMediaTypes
- media types consumed and produced by the endpointspublic AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<EndpointInfo<WebOperation>> webEndpoints, EndpointMediaTypes endpointMediaTypes, 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 endpointsendpointMediaTypes
- media types consumed and produced by the endpointscorsConfiguration
- the CORS configuration for the endpointspublic Collection<EndpointInfo<WebOperation>> 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(WebOperation operation)
protected org.springframework.web.servlet.mvc.method.RequestMappingInfo createRequestMappingInfo(WebOperation 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.