public class LocalizationVar extends MultipartVar
The format for this var is
This variable resolver requires that a RestRequest
object be set as a context object on the resolver or a
session object on the resolver session.
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.
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The name of this variable.
|
Constructor and Description |
---|
LocalizationVar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(VarResolverSession session,
String[] args)
The interface that needs to be implemented for this interface.
|
resolve
allowNested, allowRecurse, doResolve, getName
public static final String NAME
public LocalizationVar()
public String resolve(VarResolverSession session, String[] args)
MultipartVar
resolve
in class MultipartVar
session
- The session object used for a single instance of a string resolution.args
- The arguments inside the variable.Copyright © 2018 Apache. All rights reserved.