Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    org.apache.struts2.dispatcher.Dispatcher.setMultipartHandler(String)
    since 6.4.0, no replacement.
  • Deprecated Interfaces
    Interface
    Description
    com.opensymphony.xwork2.interceptor.NoParameters
    since Struts 6.2.0, use NoParameters
    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.CookiesAware
    please use CookiesAware instead
  • Deprecated Classes
    Class
    Description
    com.opensymphony.xwork2.inject.util.Strings
    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
    org.apache.struts2.interceptor.FileUploadInterceptor
    since Struts 6.4.0, use ActionFileUploadInterceptor instead
  • Deprecated Fields
    Field
    Description
    com.opensymphony.xwork2.conversion.TypeConverter.TYPE_CONVERTER_CONTEXT_KEY
    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.
  • Deprecated Methods
    Method
    Description
    com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.buildExceptionMappings(Element, PackageConfig.Builder)
    since 6.2.0, use XmlDocConfigurationProvider.buildExceptionMappings(Element)
    com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.verifyAction(String, String, Location)
    since 6.2.0, use XmlDocConfigurationProvider.verifyAction(String, Location)
    com.opensymphony.xwork2.inject.util.Strings.capitalize(String)
    com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory.setCacheMaxSize(String)
    since 6.4.0
    com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory.setUseLRUCache(String)
    since 6.4.0
    com.opensymphony.xwork2.ognl.OgnlCacheFactory.buildOgnlCache(int, int, float, boolean)
    since 6.4.0, use OgnlCacheFactory.buildOgnlCache(int, int, float, CacheType)
    com.opensymphony.xwork2.ognl.OgnlCacheFactory.getUseLRUCache()
    since 6.4.0
    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.OgnlUtil.isDisallowDefaultPackageAccess()
    since 6.4.0, no replacement.
    com.opensymphony.xwork2.ognl.OgnlUtil.isDisallowProxyMemberAccess()
    since 6.4.0, no replacement.
    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.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.
    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.OgnlValueStack.setXWorkConverter(XWorkConverter)
    since 6.4.0, no replacement.
    com.opensymphony.xwork2.ognl.OgnlValueStackFactory.containerAllowsStaticFieldAccess()
    since 6.4.0, no replacement.
    com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.clearDefaultResourceBundles()
    used only in tests
    com.opensymphony.xwork2.util.StrutsLocalizedTextProvider.localeFromString(String, Locale)
    please use LocaleUtils.toLocale(String)
    org.apache.struts2.dispatcher.Dispatcher.createStrutsXmlConfigurationProvider(String, boolean, ServletContext)
    since 6.2.0, use Dispatcher.createStrutsXmlConfigurationProvider(String, ServletContext)
    org.apache.struts2.dispatcher.Dispatcher.setMultipartHandler(String)
    since 6.4.0, no replacement.
    org.apache.struts2.dispatcher.HttpParameters.Builder.buildNoNestedWrapping()
    since 6.4.0, use HttpParameters.Builder.build() instead
    org.apache.struts2.interceptor.CookiesAware.setCookiesMap(Map<String, String>)
    please use CookiesAware.withCookies(Map) instead
    org.apache.struts2.interceptor.csp.CspSettings.addCspHeaders(HttpServletResponse)
    use CspSettings.addCspHeaders(HttpServletRequest, HttpServletResponse) instead
    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.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)
    org.apache.struts2.ServletActionContext.getContext()
    Use ServletActionContext.getActionContext() instead
    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
  • Deprecated Constructors
    Constructor
    Description
    com.opensymphony.xwork2.config.impl.AbstractMatcher(PatternMatcher<?>)
    use @{link AbstractMatcher(com.opensymphony.xwork2.util.PatternMatcher<?>,boolean) instead
    com.opensymphony.xwork2.config.providers.XmlConfigurationProvider(String, boolean)
    since 6.2.0, use XmlConfigurationProvider(String)
    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.ognl.OgnlUtil()
    since 6.0.0. Use 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.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.SecurityMemberAccess(boolean)
    since 6.4.0, use SecurityMemberAccess(ProviderAllowlist) instead.
    com.opensymphony.xwork2.validator.DelegatingValidatorContext(Class)
    will be removed, do not use!
    org.apache.struts2.config.StrutsXmlConfigurationProvider(boolean)
    org.apache.struts2.config.StrutsXmlConfigurationProvider(String, boolean, ServletContext)
    since 6.2.0, use StrutsXmlConfigurationProvider(String, ServletContext)
    org.apache.struts2.dispatcher.multipart.StrutsUploadedFile(File)
    since Struts 6.4.0

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