# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  org.apache.struts2.interceptor.ApplicationAware
  org.apache.struts2.interceptor.CookiesAware please use `CookiesAware` instead
  org.apache.struts2.interceptor.HttpParametersAware
  com.opensymphony.xwork2.interceptor.NoParameters since Struts 6.2.0, use `NoParameters`
  org.apache.struts2.interceptor.ParameterAware
  com.opensymphony.xwork2.interceptor.ParameterNameAware since 6.4.0, use `ParameterNameAware`.
  com.opensymphony.xwork2.interceptor.ParameterValueAware since 6.4.0, use `ParameterValueAware`.
  org.apache.struts2.interceptor.PrincipalAware
  org.apache.struts2.interceptor.RequestAware
  org.apache.struts2.util.ServletContextAware
  org.apache.struts2.interceptor.ServletRequestAware
  org.apache.struts2.interceptor.ServletResponseAware
  org.apache.struts2.interceptor.SessionAware

- Deprecated Classes
  Class and Description
  org.apache.struts2.interceptor.FileUploadInterceptor since Struts 6.4.0, use `ActionFileUploadInterceptor` instead
  com.opensymphony.xwork2.interceptor.ParameterFilterInterceptor since 6.4.0, use `ParametersInterceptor`.
  com.opensymphony.xwork2.interceptor.ParametersInterceptor since 6.4.0, use `ParametersInterceptor`.
  com.opensymphony.xwork2.util.reflection.ReflectionProviderFactory inject RefectionProvider directly
  com.opensymphony.xwork2.inject.util.Strings

- Deprecated Fields
  Field and Description
  org.apache.struts2.StrutsConstants.STRUTS_ENABLE_OGNL_EVAL_EXPRESSION as of 6.0.0. Use `StrutsConstants.STRUTS_OGNL_ENABLE_EVAL_EXPRESSION` instead.
  org.apache.struts2.StrutsConstants.STRUTS_ENABLE_OGNL_EXPRESSION_CACHE as of 6.0.0. Use `StrutsConstants.STRUTS_OGNL_ENABLE_EXPRESSION_CACHE` instead.
  org.apache.struts2.StrutsConstants.STRUTS_LOG_MISSING_PROPERTIES as of 6.0.0. Use `StrutsConstants.STRUTS_OGNL_LOG_MISSING_PROPERTIES` instead.
  org.apache.struts2.StrutsConstants.STRUTS_OBJECTFACTORY_SPRING_ENABLE_AOP_SUPPORT
  org.apache.struts2.StrutsConstants.STRUTS_OGNL_BEANINFO_CACHE_LRU_MODE since 6.4.0, use `StrutsConstants.STRUTS_OGNL_BEANINFO_CACHE_TYPE` instead.
  org.apache.struts2.StrutsConstants.STRUTS_OGNL_EXPRESSION_CACHE_LRU_MODE since 6.4.0, use `StrutsConstants.STRUTS_OGNL_EXPRESSION_CACHE_TYPE` instead.
  com.opensymphony.xwork2.conversion.TypeConverter.TYPE_CONVERTER_CONTEXT_KEY

- Deprecated Methods
  Method and Description
  org.apache.struts2.interceptor.parameter.ParametersInterceptor.acceptableName(String) since 6.4.0, use `ParametersInterceptor.isAcceptableName(java.lang.String)`
  org.apache.struts2.interceptor.parameter.ParametersInterceptor.acceptableValue(String, String) since 6.4.0, use `ParametersInterceptor.isAcceptableValue(java.lang.String, java.lang.String)`
  org.apache.struts2.interceptor.csp.CspSettings.addCspHeaders(HttpServletResponse) use `CspSettings.addCspHeaders(HttpServletRequest, HttpServletResponse)` instead
  com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.buildExceptionMappings(Element, PackageConfig.Builder) since 6.2.0, use `XmlDocConfigurationProvider.buildExceptionMappings(Element)`
  org.apache.struts2.dispatcher.HttpParameters.Builder.buildNoNestedWrapping() since 6.4.0, use `HttpParameters.Builder.build()` instead
  com.opensymphony.xwork2.ognl.OgnlCacheFactory.buildOgnlCache(int, int, float, boolean) since 6.4.0, use `OgnlCacheFactory.buildOgnlCache(int, int, float, CacheType)`
  com.opensymphony.xwork2.inject.util.Strings.capitalize(String)
  com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.clearDefaultResourceBundles() used only in tests
  com.opensymphony.xwork2.ognl.OgnlValueStackFactory.containerAllowsStaticFieldAccess() since 6.4.0, no replacement.
  org.apache.struts2.dispatcher.Dispatcher.createStrutsXmlConfigurationProvider(String, boolean, ServletContext) since 6.2.0, use `Dispatcher.createStrutsXmlConfigurationProvider(String, ServletContext)`
  org.apache.struts2.ServletActionContext.getContext() Use `ServletActionContext.getActionContext()` instead
  com.opensymphony.xwork2.ognl.OgnlUtil.getExcludedClasses() since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.getExcludedPackageExemptClasses() since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.getExcludedPackageNamePatterns() since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.getExcludedPackageNames() since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlCacheFactory.getUseLRUCache() since 6.4.0
  com.opensymphony.xwork2.ognl.OgnlUtil.isDisallowDefaultPackageAccess() since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.isDisallowProxyMemberAccess() since 6.4.0, no replacement.
  com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.localeFromString(String, Locale) please use `LocaleUtils.toLocale(String)`
  org.apache.struts2.url.QueryStringParser.parse(String, boolean) since Struts 6.2.0, use `QueryStringParser.parse(String)` instead
  com.opensymphony.xwork2.ognl.OgnlUtil.setAllowStaticFieldAccess(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setBeanInfoCacheMaxSize(String) since 6.4.0, changing maximum cache size after initialisation is not necessary.
  com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory.setCacheMaxSize(String) since 6.4.0
  org.apache.struts2.views.jsp.ui.AbstractUITag.setClass(String) Use `AbstractUITag.setCssClass(String)` instead
  org.apache.struts2.interceptor.CookiesAware.setCookiesMap(Map<String, String>) please use `CookiesAware.withCookies(Map)` instead
  com.opensymphony.xwork2.ognl.OgnlUtil.setDisallowDefaultPackageAccess(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setDisallowProxyMemberAccess(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setExcludedClasses(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setExcludedPackageExemptClasses(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setExcludedPackageNamePatterns(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setExcludedPackageNames(String) since 6.4.0, no replacement.
  com.opensymphony.xwork2.ognl.OgnlUtil.setExpressionCacheMaxSize(String) since 6.4.0, changing maximum cache size after initialisation is not necessary.
  org.apache.struts2.dispatcher.Dispatcher.setMultipartHandler(String) since 6.4.0, no replacement.
  org.apache.struts2.interceptor.parameter.ParametersInterceptor.setParameters(Object, ValueStack, HttpParameters) since 6.4.0, use `ParametersInterceptor.applyParameters(java.lang.Object, com.opensymphony.xwork2.util.ValueStack, org.apache.struts2.dispatcher.HttpParameters)`
  com.opensymphony.xwork2.ognl.OgnlValueStack.setRoot(XWorkConverter, CompoundRootAccessor, CompoundRoot, boolean) since 6.4.0, use `OgnlValueStack.setRoot(XWorkConverter, RootAccessor, CompoundRoot, SecurityMemberAccess)` instead.
  com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory.setUseLRUCache(String) since 6.4.0
  com.opensymphony.xwork2.ognl.OgnlValueStack.setXWorkConverter(XWorkConverter) since 6.4.0, no replacement.
  com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.verifyAction(String, String, Location) since 6.2.0, use `XmlDocConfigurationProvider.verifyAction(String, Location)`

- Deprecated Constructors
  Constructor and Description
  com.opensymphony.xwork2.config.impl.AbstractMatcher(PatternMatcher<?>) use @{link `AbstractMatcher(PatternMatcher, boolean)` instead
  com.opensymphony.xwork2.ognl.DefaultOgnlBeanInfoCacheFactory() since 6.4.0, use `DefaultOgnlBeanInfoCacheFactory(String, String)`
  com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory() since 6.4.0, use `#DefaultOgnlCacheFactory(int, CacheType)`
  com.opensymphony.xwork2.ognl.DefaultOgnlExpressionCacheFactory() since 6.4.0, use `DefaultOgnlExpressionCacheFactory(String, String)`
  com.opensymphony.xwork2.validator.DelegatingValidatorContext(Class) will be removed, do not use!
  com.opensymphony.xwork2.ognl.OgnlUtil() since 6.0.0. Use {@link #OgnlUtil(ExpressionCacheFactory, BeanInfoCacheFactory, OgnlGuard) instead.
  com.opensymphony.xwork2.ognl.OgnlValueStack(ValueStack, XWorkConverter, CompoundRootAccessor, boolean) since 6.4.0, use `OgnlValueStack(ValueStack, XWorkConverter, RootAccessor, SecurityMemberAccess)` instead.
  com.opensymphony.xwork2.ognl.OgnlValueStack(ValueStack, XWorkConverter, CompoundRootAccessor, TextProvider, boolean) since 6.4.0, use `OgnlValueStack(ValueStack, XWorkConverter, RootAccessor, TextProvider, SecurityMemberAccess)` instead.
  com.opensymphony.xwork2.ognl.OgnlValueStack(XWorkConverter, CompoundRootAccessor, TextProvider, boolean) since 6.4.0, use `OgnlValueStack(XWorkConverter, RootAccessor, TextProvider, SecurityMemberAccess)` instead.
  com.opensymphony.xwork2.ognl.SecurityMemberAccess(boolean) since 6.4.0, use `SecurityMemberAccess(ProviderAllowlist, ThreadAllowlist)` instead.
  org.apache.struts2.dispatcher.multipart.StrutsUploadedFile(File) since Struts 6.4.0
  org.apache.struts2.config.StrutsXmlConfigurationProvider(boolean)
  org.apache.struts2.config.StrutsXmlConfigurationProvider(String, boolean, ServletContext) since 6.2.0, use `StrutsXmlConfigurationProvider(String, ServletContext)`
  com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(String, boolean) since 6.2.0, use `XmlConfigurationProvider(String)`

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.