# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Exceptions
- Deprecated Annotation Types
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  com.opensymphony.xwork2.util.logging.Logger since 2.5
  org.apache.struts2.interceptor.ParameterAware please use `HttpParametersAware` instead

- Deprecated Classes
  Class and Description
  com.opensymphony.xwork2.util.logging.commons.CommonsLogger since 2.5
  com.opensymphony.xwork2.util.logging.commons.CommonsLoggerFactory since 2.5
  com.opensymphony.xwork2.conversion.metadata.ConversionDescription class will be removed
  com.opensymphony.xwork2.util.logging.jdk.JdkLogger since 2.5
  com.opensymphony.xwork2.util.logging.jdk.JdkLoggerFactory since 2.5
  com.opensymphony.xwork2.util.logging.log4j2.Log4j2Logger since 2.5
  com.opensymphony.xwork2.util.logging.log4j2.Log4j2LoggerFactory since 2.5
  com.opensymphony.xwork2.util.logging.LoggerFactory since 2.5
  com.opensymphony.xwork2.util.logging.LoggerUtils since 2.5
  com.opensymphony.xwork2.util.profiling.ObjectProfiler will be dropped with next major release (2.6)
  com.opensymphony.xwork2.util.profiling.ProfilingTimerBean will be dropped with next major release (2.6)
  com.opensymphony.xwork2.util.reflection.ReflectionProviderFactory inject RefectionProvider directly
  com.opensymphony.xwork2.util.logging.slf4j.Slf4jLogger since 2.5
  com.opensymphony.xwork2.util.logging.slf4j.Slf4jLoggerFactory since 2.5
  com.opensymphony.xwork2.inject.util.Strings
  com.opensymphony.xwork2.interceptor.TimerInterceptor will be dropped with next major release (2.6)
  com.opensymphony.xwork2.util.profiling.UtilTimerStack will be dropped with next major release (2.6)
  com.opensymphony.xwork2.XWorkConstants

- Deprecated Exceptions
  Exceptions and Description
  com.opensymphony.xwork2.InvalidMetadataException to be removed
  com.opensymphony.xwork2.config.ReferenceResolverException to be removed

- Deprecated Annotation Types
  Annotation Type and Description
  com.opensymphony.xwork2.validator.annotations.Validation Since Struts 2.1 because it isn't necessary anymore

- Deprecated Fields
  Field and Description
  com.opensymphony.xwork2.XWorkConstants.ADDITIONAL_ACCEPTED_PATTERNS
  com.opensymphony.xwork2.XWorkConstants.ADDITIONAL_EXCLUDED_PATTERNS
  com.opensymphony.xwork2.XWorkConstants.ALLOW_STATIC_METHOD_ACCESS
  com.opensymphony.xwork2.XWorkConstants.ARRAY_CONVERTER
  com.opensymphony.xwork2.XWorkConstants.COLLECTION_CONVERTER
  com.opensymphony.xwork2.XWorkConstants.DATE_CONVERTER
  com.opensymphony.xwork2.XWorkConstants.DEV_MODE
  com.opensymphony.xwork2.XWorkConstants.ENABLE_OGNL_EVAL_EXPRESSION
  com.opensymphony.xwork2.XWorkConstants.ENABLE_OGNL_EXPRESSION_CACHE
  org.apache.struts2.views.jsp.ui.AbstractUITag.labelposition
  com.opensymphony.xwork2.XWorkConstants.LOG_MISSING_PROPERTIES
  com.opensymphony.xwork2.XWorkConstants.NUMBER_CONVERTER
  com.opensymphony.xwork2.XWorkConstants.OGNL_EXCLUDED_CLASSES
  com.opensymphony.xwork2.XWorkConstants.OGNL_EXCLUDED_PACKAGE_NAME_PATTERNS
  com.opensymphony.xwork2.XWorkConstants.OGNL_EXCLUDED_PACKAGE_NAMES
  com.opensymphony.xwork2.XWorkConstants.OVERRIDE_ACCEPTED_PATTERNS
  com.opensymphony.xwork2.XWorkConstants.OVERRIDE_EXCLUDED_PATTERNS
  com.opensymphony.xwork2.XWorkConstants.RELOAD_XML_CONFIGURATION
  org.apache.struts2.components.Text.searchStack
  org.apache.struts2.views.jsp.TextTag.searchValueStack
  com.opensymphony.xwork2.XWorkConstants.STRING_CONVERTER
  org.apache.struts2.StrutsConstants.STRUTS_LOCALE_PROVIDER use `StrutsConstants.STRUTS_LOCALE_PROVIDER_FACTORY` instead
  org.apache.struts2.StrutsConstants.STRUTS_OBJECTFACTORY_SPRING_ENABLE_AOP_SUPPORT
  org.apache.struts2.StrutsConstants.STRUTS_XWORKTEXTPROVIDER use `StrutsConstants.STRUTS_TEXT_PROVIDER` instead
  com.opensymphony.xwork2.XWorkConstants.XWORK_LOGGER_FACTORY

- Deprecated Methods
  Method and Description
  org.apache.struts2.util.tomcat.buf.ByteChunk.append(char) Unused. Will be removed in Tomcat 8.0.x onwards.
  com.opensymphony.xwork2.inject.util.Strings.capitalize(String)
  com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.clearDefaultResourceBundles() used only in tests
  org.apache.struts2.util.tomcat.buf.ByteChunk.findNotBytes(byte[], int, int, byte[]) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.ByteChunk.getClone() Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.ByteChunk.getInt() Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.TextProviderHelper.getText(String, String, List<Object>, ValueStack, boolean) The stack should never be searched for the key. Use the version without the searchStack boolean instead.
  org.apache.struts2.util.tomcat.buf.ByteChunk.hashIgnoreCase() Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.dispatcher.InitOperations.initLogging(HostConfig) since 2.5
  org.apache.struts2.util.tomcat.buf.Ascii.isAlpha(int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.Ascii.isLower(int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.Ascii.isUpper(int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.Ascii.isWhite(int) Unused. Will be removed in Tomcat 8.0.x onwards.
  com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.localeFromString(String, Locale) please use `LocaleUtils.toLocale(String)`
  org.apache.struts2.util.tomcat.buf.Ascii.parseInt(byte[], int, int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.Ascii.parseInt(char[], int, int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.Ascii.parseLong(char[], int, int) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.components.UIBean.setClass(String)
  org.apache.struts2.views.jsp.ui.AbstractUITag.setClass(String) Use `AbstractUITag.setCssClass(String)` instead
  com.opensymphony.xwork2.ognl.accessor.XWorkListPropertyAccessor.setDeprecatedAutoGrowCollectionLimit(String)
  org.apache.struts2.components.Checkbox.setLabelposition(String) use `Checkbox.setLabelPosition(String)` instead
  org.apache.struts2.components.UIBean.setLabelposition(String) use `UIBean.setLabelPosition(String)` instead
  org.apache.struts2.views.jsp.ui.AbstractUITag.setLabelposition(String) use `AbstractUITag.setLabelPosition(String)` instead
  org.apache.struts2.util.tomcat.buf.ByteChunk.setOptimizedWrite(boolean) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.components.Text.setSearchValueStack(String)
  org.apache.struts2.views.jsp.TextTag.setSearchValueStack(String)
  org.apache.struts2.util.tomcat.buf.ByteChunk.startsWith(byte[]) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.ByteChunk.startsWith(String) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.util.tomcat.buf.ByteChunk.substract(ByteChunk) Unused. Will be removed in Tomcat 8.0.x onwards.
  org.apache.struts2.dispatcher.HttpParameters.toMap() since 2.5.6, do not use it TODO: reduce access level to `private`
  org.apache.struts2.util.tomcat.buf.Ascii.toUpper(int) Unused. Will be removed in Tomcat 8.0.x onwards.

- 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!

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