Uses of Class
org.apache.struts2.config.entities.PackageConfig.Builder
Package
Description
Configuration entity classes.
Configuration provider classes.
-
Uses of PackageConfig.Builder in org.apache.struts2.config.entities
Modifier and TypeMethodDescriptionPackageConfig.Builder.addActionConfig
(String name, ActionConfig action) PackageConfig.Builder.addExceptionMappingConfig
(ExceptionMappingConfig exceptionMappingConfig) PackageConfig.Builder.addGlobalAllowedMethods
(Set<String> allowedMethods) PackageConfig.Builder.addGlobalExceptionMappingConfigs
(List<ExceptionMappingConfig> exceptionMappingConfigs) PackageConfig.Builder.addGlobalResultConfig
(ResultConfig resultConfig) PackageConfig.Builder.addGlobalResultConfigs
(Map<String, ResultConfig> resultConfigs) PackageConfig.Builder.addInterceptorConfig
(InterceptorConfig config) PackageConfig.Builder.addInterceptorStackConfig
(InterceptorStackConfig config) PackageConfig.Builder.addParent
(PackageConfig parent) PackageConfig.Builder.addParents
(List<PackageConfig> parents) PackageConfig.Builder.addResultTypeConfig
(ResultTypeConfig config) PackageConfig.Builder.defaultActionRef
(String name) PackageConfig.Builder.defaultClassRef
(String defaultClassRef) PackageConfig.Builder.defaultInterceptorRef
(String name) PackageConfig.Builder.defaultResultType
(String defaultResultType) sets the default Result type for this packagePackageConfig.Builder.isAbstract
(boolean isAbstract) PackageConfig.Builder.isFinal
(boolean isFinal) PackageConfig.Builder.needsRefresh
(boolean needsRefresh) PackageConfig.Builder.strictMethodInvocation
(boolean strict) -
Uses of PackageConfig.Builder in org.apache.struts2.config.providers
Modifier and TypeMethodDescriptionprotected PackageConfig.Builder
XmlDocConfigurationProvider.buildPackageContext
(Element packageElement) This method builds a package context by looking for the parents of this new package.Modifier and TypeMethodDescriptionprotected void
XmlDocConfigurationProvider.addAction
(Element actionElement, PackageConfig.Builder packageContext) protected void
XmlDocConfigurationProvider.addResultTypes
(PackageConfig.Builder packageContext, Element element) protected ActionConfig
XmlDocConfigurationProvider.buildActionConfig
(Element actionElement, Location location, PackageConfig.Builder packageContext, Map<String, ResultConfig> results) XmlDocConfigurationProvider.buildAllowedMethods
(Element element, PackageConfig.Builder packageContext) protected List<InterceptorMapping>
XmlDocConfigurationProvider.buildInterceptorList
(Element element, PackageConfig.Builder context) protected Map<String,
ResultConfig> XmlDocConfigurationProvider.buildResults
(Element element, PackageConfig.Builder packageContext) Build a map of ResultConfig objects from below a given XML element.protected void
XmlDocConfigurationProvider.loadDefaultActionRef
(PackageConfig.Builder packageContext, Element element) protected void
XmlDocConfigurationProvider.loadDefaultClassRef
(PackageConfig.Builder packageContext, Element element) protected void
XmlDocConfigurationProvider.loadDefaultInterceptorRef
(PackageConfig.Builder packageContext, Element element) protected void
XmlDocConfigurationProvider.loadGlobalAllowedMethods
(PackageConfig.Builder packageContext, Element packageElement) protected void
XmlDocConfigurationProvider.loadGlobalExceptionMappings
(PackageConfig.Builder packageContext, Element packageElement) Load all the global results for this package from the XML element.protected void
XmlDocConfigurationProvider.loadGlobalResults
(PackageConfig.Builder packageContext, Element packageElement) Load all the global results for this package from the XML element.protected void
XmlDocConfigurationProvider.loadInterceptors
(PackageConfig.Builder context, Element element) protected InterceptorStackConfig
XmlDocConfigurationProvider.loadInterceptorStack
(Element element, PackageConfig.Builder context) protected void
XmlDocConfigurationProvider.loadInterceptorStacks
(Element element, PackageConfig.Builder context) protected List<InterceptorMapping>
XmlDocConfigurationProvider.lookupInterceptorReference
(PackageConfig.Builder context, Element interceptorRefElement) Looks up the Interceptor Class from the interceptor-ref name and creates an instance, which is added to the provided List, or, if this is a ref to a stack, it adds the Interceptor instances from the List to this stack.