Package org.apache.juneau.rest.vars
Class LocalizationVar
java.lang.Object
org.apache.juneau.svl.Var
org.apache.juneau.svl.SimpleVar
org.apache.juneau.svl.MultipartVar
org.apache.juneau.rest.vars.LocalizationVar
Localized string variable resolver.
 
 The format for this var is 
 This variable resolver requires that a RestRequest bean be available in the session bean store.
 
 Values are pulled from the RestRequest.getMessage(String,Object[]) method.
 These in turn are pulled from the resource bundle associated with the servlet class where the request was made.
 
 Since this is a SimpleVar, any variables contained in the result will be recursively resolved.
 Likewise, if the arguments contain any variables, those will be resolved before they are passed to this var.
 
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanResolve(VarResolverSession session) Returnstrue if this variable can be resolved in the specified session.resolve(VarResolverSession session, String[] args) The interface that needs to be implemented for this interface.Methods inherited from class org.apache.juneau.svl.MultipartVarresolveMethods inherited from class org.apache.juneau.svl.VarallowNested, allowRecurse, doResolve, getName
- 
Field Details- 
NAMEThe name of this variable.- See Also:
 
 
- 
- 
Constructor Details- 
LocalizationVarpublic LocalizationVar()Constructor.
 
- 
- 
Method Details- 
resolveDescription copied from class:MultipartVarThe interface that needs to be implemented for this interface.- Specified by:
- resolvein class- MultipartVar
- Parameters:
- session- The session object used for a single instance of a string resolution.
- args- The arguments inside the variable.
- Returns:
- The resolved variable.
 
- 
canResolveDescription copied from class:VarReturnstrue if this variable can be resolved in the specified session.For example, some variable cannot resolve unless specific context or session objects are available. - Overrides:
- canResolvein class- Var
- Parameters:
- session- The current session.
- Returns:
- true if this variable can be resolved in the specified session.
 
 
-