public class UrlEncodeVar extends SimpleVar
The format for this var is
This variable takes the contents inside the variable and replaces it with a value returned by calling
StringUtils.urlEncode(String)
).
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 |
---|
UrlEncodeVar()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(VarResolverSession session,
String key)
The interface that needs to be implemented for subclasses of
SimpleVar . |
allowNested, allowRecurse, canResolve, doResolve, getName
public static final String NAME
public UrlEncodeVar()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.