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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct this factory bean using the defaultPathPatternParserPathPatternRequestMatcherBuilderFactoryBean(org.springframework.web.util.pattern.PathPatternParser parser) Construct this factory bean using thisPathPatternParser. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>voidsetApplicationContext(org.springframework.context.ApplicationContext context) voidsetBasePath(String basePath) Use this as the base path for patterns built by the resultingPathPatternRequestMatcher.BuilderinstancevoidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetBeanName(String name) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
PathPatternRequestMatcherBuilderFactoryBean
public PathPatternRequestMatcherBuilderFactoryBean()Construct this factory bean using the defaultPathPatternParserIf 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 thisPathPatternParser.If you are using Spring MVC, it is likely incorrect to call this constructor. Please call the default constructor instead.
- Parameters:
parser- thePathPatternParserto use
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<PathPatternRequestMatcher.Builder>
-
setBasePath
Use this as the base path for patterns built by the resultingPathPatternRequestMatcher.Builderinstance- Parameters:
basePath- the base path to use- Since:
- 7.0
- See Also:
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-