# Deprecated API

## Contents

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

- Deprecated Interfaces
  Interface and Description
  org.apache.struts2.interceptor.CookiesAware please use `CookiesAware` instead
  com.opensymphony.xwork2.interceptor.NoParameters since Struts 6.2.0, use `NoParameters`

- Deprecated Classes
  Class and Description
  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
  com.opensymphony.xwork2.conversion.TypeConverter.TYPE_CONVERTER_CONTEXT_KEY

- Deprecated Methods
  Method and Description
  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)`
  com.opensymphony.xwork2.inject.util.Strings.capitalize(String)
  com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.clearDefaultResourceBundles() used only in tests
  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.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
  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.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.validator.DelegatingValidatorContext(Class) will be removed, do not use!
  com.opensymphony.xwork2.ognl.OgnlUtil() It is recommended to utilize the {@link OgnlUtil#OgnlUtil(com.opensymphony.xwork2.ognl.ExpressionCacheFactory, com.opensymphony.xwork2.ognl.BeanInfoCacheFactory) method instead.
  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–2023 Apache Software Foundation. All rights reserved.