public class StrutsXmlConfigurationProvider extends XmlConfigurationProvider
fileManagerallowlistClasses, configuration, declaredPackages, documents, dtdMappings, objectFactory, providerAllowlist, throwExceptionOnDuplicateBeans, valueSubstitutor| Constructor and Description | 
|---|
| StrutsXmlConfigurationProvider()Constructs the Struts configuration provider using the default struts.xml and no ServletContext | 
| StrutsXmlConfigurationProvider(boolean errorIfMissing)Deprecated.  | 
| StrutsXmlConfigurationProvider(String filename)Constructs the configuration provider based on the provided config file | 
| StrutsXmlConfigurationProvider(String filename,
                              boolean errorIfMissing,
                              javax.servlet.ServletContext ctx)Deprecated. 
 since 6.2.0, use  StrutsXmlConfigurationProvider(String, ServletContext) | 
| StrutsXmlConfigurationProvider(String filename,
                              javax.servlet.ServletContext ctx)Constructs the Struts configuration provider | 
| Modifier and Type | Method and Description | 
|---|---|
| protected URL | findInFileSystem(String fileName) | 
| protected Iterator<URL> | getConfigurationUrls(String fileName)Look for the configuration file on the classpath and in the file system | 
| void | loadPackages()Loads the packages for the configuration. | 
| boolean | needsReload()Overrides needs reload to ensure it is only checked once per request | 
| void | register(ContainerBuilder containerBuilder,
        LocatableProperties props)Registers beans and properties for the Container | 
| String | toString() | 
equals, getDocs, getFinalDocs, getURLs, hashCode, init, loadConfigurationFiles, parseFile, setFileManagerFactoryaddAction, addAllowedMethodsToSet, addPackage, addResultTypes, allowAndLoadClass, buildActionConfig, buildAllowedMethods, buildExceptionMappings, buildExceptionMappings, buildInterceptorConfig, buildInterceptorList, buildPackageContext, buildResultConfig, buildResultParams, buildResults, buildResultTypeConfig, destroy, getDtdMappings, guessResultType, iterateChildren, iterateChildrenByTagName, iterateElementChildren, iterateElementChildren, loadClass, loadDefaultActionRef, loadDefaultClassRef, loadDefaultInterceptorRef, loadExtraConfiguration, loadGlobalAllowedMethods, loadGlobalExceptionMappings, loadGlobalResults, loadInterceptors, loadInterceptorStack, loadInterceptorStacks, lookupInterceptorReference, registerBean, registerBeanSelection, registerConstant, registerUnknownHandlerStack, setDtdMappings, setObjectFactory, setProviderAllowlist, setThrowExceptionOnDuplicateBeans, setValueSubstitutor, verifyAction, verifyAction, verifyInterceptor, verifyResultTypepublic StrutsXmlConfigurationProvider()
@Deprecated public StrutsXmlConfigurationProvider(boolean errorIfMissing)
errorIfMissing - If we should throw an exception if the file can't be foundpublic StrutsXmlConfigurationProvider(String filename)
filename - file with Struts configurationpublic StrutsXmlConfigurationProvider(String filename, javax.servlet.ServletContext ctx)
filename - The filename to look forctx - Our ServletContext@Deprecated public StrutsXmlConfigurationProvider(String filename, @Deprecated boolean errorIfMissing, javax.servlet.ServletContext ctx)
StrutsXmlConfigurationProvider(String, ServletContext)public void register(ContainerBuilder containerBuilder, LocatableProperties props) throws ConfigurationException
ContainerProviderregister in interface ContainerProviderregister in class XmlConfigurationProvidercontainerBuilder - The builder to register beans withprops - The properties to register constants withConfigurationException - If anything goes wrongpublic void loadPackages()
PackageProviderloadPackages in interface PackageProviderloadPackages in class XmlConfigurationProviderprotected Iterator<URL> getConfigurationUrls(String fileName) throws IOException
getConfigurationUrls in class XmlConfigurationProviderfileName - The file name to retrieveIOExceptionXmlConfigurationProvider.getConfigurationUrls(java.lang.String)protected URL findInFileSystem(String fileName) throws IOException
IOExceptionpublic boolean needsReload()
needsReload in interface ContainerProviderneedsReload in interface PackageProviderneedsReload in class XmlConfigurationProviderpublic String toString()
toString in class XmlConfigurationProviderCopyright © 2000–2025 Apache Software Foundation. All rights reserved.