public abstract class AbstractWebMvcEndpointHandlerMapping
extends org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
implements org.springframework.beans.factory.InitializingBean, org.springframework.web.servlet.handler.MatchableHandlerMapping
HandlerMapping that makes web endpoints
available over HTTP using Spring MVC.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractWebMvcEndpointHandlerMapping.ServletWebOperation
A servlet web operation that can be handled by Spring MVC.
|
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE| Constructor and Description |
|---|
AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableWebEndpoint> endpoints,
EndpointMediaTypes endpointMediaTypes)
Creates a new
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints. |
AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping,
Collection<ExposableWebEndpoint> endpoints,
EndpointMediaTypes endpointMediaTypes,
org.springframework.web.cors.CorsConfiguration corsConfiguration)
Creates a new
AbstractWebMvcEndpointHandlerMapping that provides mappings
for the operations of the given endpoints. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
extendInterceptors(List<Object> interceptors) |
Collection<ExposableWebEndpoint> |
getEndpoints()
Return the web endpoints being mapped.
|
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 Object |
links(HttpServletRequest request,
HttpServletResponse response) |
org.springframework.web.servlet.handler.RequestMatchResult |
match(HttpServletRequest request,
String pattern) |
protected AbstractWebMvcEndpointHandlerMapping.ServletWebOperation |
wrapServletWebOperation(ExposableWebEndpoint endpoint,
WebOperation operation,
AbstractWebMvcEndpointHandlerMapping.ServletWebOperation servletWebOperation)
Hook point that allows subclasses to wrap the
AbstractWebMvcEndpointHandlerMapping.ServletWebOperation before
it's called. |
getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchafterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingadaptInterceptor, detectMappedInterceptors, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setCorsConfigurations, 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, waitpublic AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes)
WebEndpointHandlerMapping that provides mappings for the
operations of the given webEndpoints.endpointMapping - the base mapping for all endpointsendpoints - the web endpointsendpointMediaTypes - media types consumed and produced by the endpointspublic AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, org.springframework.web.cors.CorsConfiguration corsConfiguration)
AbstractWebMvcEndpointHandlerMapping that provides mappings
for the operations of the given endpoints.endpointMapping - the base mapping for all endpointsendpoints - the web endpointsendpointMediaTypes - media types consumed and produced by the 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>public org.springframework.web.servlet.handler.RequestMatchResult match(HttpServletRequest request, String pattern)
match in interface org.springframework.web.servlet.handler.MatchableHandlerMappingprotected AbstractWebMvcEndpointHandlerMapping.ServletWebOperation wrapServletWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebMvcEndpointHandlerMapping.ServletWebOperation servletWebOperation)
AbstractWebMvcEndpointHandlerMapping.ServletWebOperation before
it's called. Allows additional features, such as security, to be added.endpoint - the source endpointoperation - the source operationservletWebOperation - the servlet web operation to wrapprotected 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 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>protected void extendInterceptors(List<Object> interceptors)
extendInterceptors in class org.springframework.web.servlet.handler.AbstractHandlerMappingprotected abstract Object links(HttpServletRequest request, HttpServletResponse response)
public Collection<ExposableWebEndpoint> getEndpoints()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.