Class MvcNamespaceUtils
java.lang.Object
org.springframework.web.servlet.config.MvcNamespaceUtils
Convenience methods for use in MVC namespace BeanDefinitionParsers.
- Since:
 - 3.1
 - Author:
 - Rossen Stoyanchev, Juergen Hoeller, Brian Clozel, Marten Deinum
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetContentNegotiationManager(org.springframework.beans.factory.xml.ParserContext context) Find theContentNegotiationManagerbean created by or registered with theannotation-drivenelement.static org.springframework.beans.factory.config.RuntimeBeanReferenceregisterCorsConfigurations(@Nullable Map<String, org.springframework.web.cors.CorsConfiguration> corsConfigurations, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Registers aMap<String, CorsConfiguration>(mappedCorsConfigurations) under a well-known name unless already registered.static voidregisterDefaultComponents(org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) static org.springframework.beans.factory.config.RuntimeBeanReferenceregisterPathMatcher(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference pathMatcherRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aPathMatcherunder that well-known name, unless already registered.static org.springframework.beans.factory.config.RuntimeBeanReferenceregisterPatternParser(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference patternParserRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aPathPatternParserunder that well-known name, unless already registered.static org.springframework.beans.factory.config.RuntimeBeanReferenceregisterUrlPathHelper(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference urlPathHelperRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aUrlPathHelperunder that well-known name, unless already registered. 
- 
Constructor Details
- 
MvcNamespaceUtils
public MvcNamespaceUtils() 
 - 
 - 
Method Details
- 
registerDefaultComponents
 - 
registerUrlPathHelper
public static org.springframework.beans.factory.config.RuntimeBeanReference registerUrlPathHelper(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference urlPathHelperRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aUrlPathHelperunder that well-known name, unless already registered.- Returns:
 - a RuntimeBeanReference to this 
UrlPathHelperinstance 
 - 
registerPathMatcher
public static org.springframework.beans.factory.config.RuntimeBeanReference registerPathMatcher(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference pathMatcherRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aPathMatcherunder that well-known name, unless already registered.- Returns:
 - a RuntimeBeanReference to this 
PathMatcherinstance 
 - 
registerPatternParser
public static org.springframework.beans.factory.config.RuntimeBeanReference registerPatternParser(@Nullable org.springframework.beans.factory.config.RuntimeBeanReference patternParserRef, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Adds an alias to an existing well-known name or registers a new instance of aPathPatternParserunder that well-known name, unless already registered.- Returns:
 - a RuntimeBeanReference to this 
PathPatternParserinstance 
 - 
registerCorsConfigurations
public static org.springframework.beans.factory.config.RuntimeBeanReference registerCorsConfigurations(@Nullable Map<String, org.springframework.web.cors.CorsConfiguration> corsConfigurations, org.springframework.beans.factory.xml.ParserContext context, @Nullable Object source) Registers aMap<String, CorsConfiguration>(mappedCorsConfigurations) under a well-known name unless already registered. The bean definition may be updated if a non-null CORS configuration is provided.- Returns:
 - a RuntimeBeanReference to this 
Map<String, CorsConfiguration>instance 
 - 
getContentNegotiationManager
 
 -