Class PathPatternRequestMatcherBuilderFactoryBean

java.lang.Object
org.springframework.security.config.web.PathPatternRequestMatcherBuilderFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>, org.springframework.context.ApplicationContextAware

public final class PathPatternRequestMatcherBuilderFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.BeanFactoryAware
Use this factory bean to configure the PathPatternRequestMatcher.Builder bean used to create request matchers in AuthorizeHttpRequestsConfigurer and other parts of the DSL.
Since:
6.5
  • Constructor Details

    • PathPatternRequestMatcherBuilderFactoryBean

      public PathPatternRequestMatcherBuilderFactoryBean()
      Construct this factory bean using the default PathPatternParser

      If you are using Spring MVC, it will use the Spring MVC instance.

    • PathPatternRequestMatcherBuilderFactoryBean

      public PathPatternRequestMatcherBuilderFactoryBean(org.springframework.web.util.pattern.PathPatternParser parser)
      Construct this factory bean using this PathPatternParser.

      If you are using Spring MVC, it is likely incorrect to call this constructor. Please call the default constructor instead.

      Parameters:
      parser - the PathPatternParser to use
  • Method Details

    • getObject

      public PathPatternRequestMatcher.Builder getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setBeanName

      public void setBeanName(@NonNull String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException