# Uses of Interface
org.apache.struts2.text.TextProvider

Packages that use TextProvider
Package
Description
org.apache.struts2
Main XWork interfaces and classes.
org.apache.struts2.action
org.apache.struts2.components
org.apache.struts2.dispatcher
This package contains a reimagining of the traditional Struts filter dispatchers.
org.apache.struts2.interceptor
Interceptor classes.
org.apache.struts2.ognl
org.apache.struts2.text
org.apache.struts2.validator
XWork validation subsystem.
org.apache.struts2.validator.validators
XWork default validator classes.

- ## Uses of TextProvider in org.apache.struts2

  Classes in org.apache.struts2 that implement TextProvider
  Modifier and Type
  Class
  Description
  `class`
  `ActionSupport`
  Provides a default implementation for the most common actions.
  Methods in org.apache.struts2 that return TextProvider
  Modifier and Type
  Method
  Description
  `protected TextProvider`
  ActionSupport.`getTextProvider()`
  If called first time it will create `TextProviderFactory`, inject dependency (if `Container` is accesible) into in, then will create new `TextProvider` and store it in a field for future references and at the returns reference to that field

- ## Uses of TextProvider in org.apache.struts2.action

  Classes in org.apache.struts2.action that implement TextProvider
  Modifier and Type
  Class
  Description
  `class`
  `CspReportAction`
  An abstract Action that can be extended to process the incoming CSP violation reports.
  `class`
  `DefaultCspReportAction`
  The default implementation of `CspReportAction` that simply logs the JSON object that contains the details of the CSP violation.

- ## Uses of TextProvider in org.apache.struts2.components

  Methods in org.apache.struts2.components with parameters of type TextProvider
  Modifier and Type
  Method
  Description
  `String`
  Date.`formatTime(TextProvider tp, ZonedDateTime date)`
  Calculates the difference in time from now to the given date, and outputs it nicely.
  `void`
  I18n.`setTextProvider(TextProvider textProvider)`

- ## Uses of TextProvider in org.apache.struts2.dispatcher

  Classes in org.apache.struts2.dispatcher that implement TextProvider
  Modifier and Type
  Class
  Description
  `class`
  `DefaultActionSupport`
  A simple action support class that sets properties to be able to serve

- ## Uses of TextProvider in org.apache.struts2.interceptor

  Methods in org.apache.struts2.interceptor that return TextProvider
  Modifier and Type
  Method
  Description
  `protected TextProvider`
  AbstractFileUploadInterceptor.`getTextProvider(Object action)`

- ## Uses of TextProvider in org.apache.struts2.ognl

  Fields in org.apache.struts2.ognl declared as TextProvider
  Modifier and Type
  Field
  Description
  `protected TextProvider`
  OgnlValueStackFactory.`textProvider`
  Methods in org.apache.struts2.ognl with parameters of type TextProvider
  Modifier and Type
  Method
  Description
  `protected void`
  OgnlValueStackFactory.`setTextProvider(TextProvider textProvider)`
  Constructors in org.apache.struts2.ognl with parameters of type TextProvider
  Modifier
  Constructor
  Description
  `protected`
  `OgnlValueStack(XWorkConverter xworkConverter, RootAccessor accessor, TextProvider prov, SecurityMemberAccess securityMemberAccess)`
  `protected`
  `OgnlValueStack(ValueStack vs, XWorkConverter xworkConverter, RootAccessor accessor, TextProvider prov, SecurityMemberAccess securityMemberAccess)`

- ## Uses of TextProvider in org.apache.struts2.text

  Subinterfaces of TextProvider in org.apache.struts2.text
  Modifier and Type
  Interface
  Description
  `interface`
  `ResourceBundleTextProvider`
  Extension Interface for TextProvider to help supporting ResourceBundles.
  Classes in org.apache.struts2.text that implement TextProvider
  Modifier and Type
  Class
  Description
  `class`
  `CompositeTextProvider`
  This is a composite `TextProvider` that takes in an array or `List` of `TextProvider`s, it will consult each of them in order to get a composite result.
  `class`
  `DefaultTextProvider`
  DefaultTextProvider gets texts from only the default resource bundles associated with the default bundles.
  `class`
  `TextProviderSupport`
  Default TextProvider implementation.
  Fields in org.apache.struts2.text declared as TextProvider
  Modifier and Type
  Field
  Description
  `protected TextProvider`
  StrutsTextProviderFactory.`defaultTextProvider`
  Methods in org.apache.struts2.text that return TextProvider
  Modifier and Type
  Method
  Description
  `TextProvider`
  StrutsTextProviderFactory.`createInstance(Class<?> clazz)`
  `TextProvider`
  StrutsTextProviderFactory.`createInstance(ResourceBundle bundle)`
  `TextProvider`
  TextProviderFactory.`createInstance(Class<?> clazz)`
  `TextProvider`
  TextProviderFactory.`createInstance(ResourceBundle bundle)`
  `protected TextProvider`
  StrutsTextProviderFactory.`getTextProvider(Class clazz)`
  `protected TextProvider`
  StrutsTextProviderFactory.`getTextProvider(ResourceBundle bundle)`
  Methods in org.apache.struts2.text with parameters of type TextProvider
  Modifier and Type
  Method
  Description
  `void`
  StrutsTextProviderFactory.`setDefaultTextProvider(TextProvider defaultTextProvider)`
  Constructors in org.apache.struts2.text with parameters of type TextProvider
  Modifier
  Constructor
  Description
  ``
  `CompositeTextProvider(TextProvider[] textProviders)`
  Instantiates a `CompositeTextProvider` with some predefined `textProviders`.
  Constructor parameters in org.apache.struts2.text with type arguments of type TextProvider
  Modifier
  Constructor
  Description
  ``
  `CompositeTextProvider(List<TextProvider> textProviders)`
  Instantiates a `CompositeTextProvider` with some predefined `textProviders`.

- ## Uses of TextProvider in org.apache.struts2.validator

  Subinterfaces of TextProvider in org.apache.struts2.validator
  Modifier and Type
  Interface
  Description
  `interface`
  `ValidatorContext`
  The context for validation.
  Classes in org.apache.struts2.validator that implement TextProvider
  Modifier and Type
  Class
  Description
  `class`
  `DelegatingValidatorContext`
  A default implementation of the `ValidatorContext` interface.
  Methods in org.apache.struts2.validator that return TextProvider
  Modifier and Type
  Method
  Description
  `protected TextProvider`
  DelegatingValidatorContext.`getTextProvider()`
  `TextProvider`
  DelegatingValidatorContext.`makeTextProvider(Object object, TextProviderFactory textProviderFactory)`
  Methods in org.apache.struts2.validator with parameters of type TextProvider
  Modifier and Type
  Method
  Description
  `protected void`
  DelegatingValidatorContext.`setTextProvider(TextProvider textProvider)`
  Constructors in org.apache.struts2.validator with parameters of type TextProvider
  Modifier
  Constructor
  Description
  ``
  `DelegatingValidatorContext(ValidationAware validationAware, TextProvider textProvider, LocaleProvider localeProvider)`
  Creates a new validation context given a ValidationAware object, and a text and locale provider.

- ## Uses of TextProvider in org.apache.struts2.validator.validators

  Classes in org.apache.struts2.validator.validators that implement TextProvider
  Modifier and Type
  Class
  Description
  `static class`
  `VisitorFieldValidator.AppendingValidatorContext`
  Constructors in org.apache.struts2.validator.validators with parameters of type TextProvider
  Modifier
  Constructor
  Description
  ``
  `AppendingValidatorContext(ValidatorContext parent, TextProvider textProvider, String field, String message)`