Package org.apache.juneau.rest.vars
Class UrlEncodeVar
java.lang.Object
org.apache.juneau.svl.Var
org.apache.juneau.svl.SimpleVar
org.apache.juneau.rest.vars.UrlEncodeVar
URL-encoding variable resolver.
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.
See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolve
(VarResolverSession session, String key) The interface that needs to be implemented for subclasses ofSimpleVar
.Methods inherited from class org.apache.juneau.svl.Var
allowNested, allowRecurse, canResolve, doResolve, getName
-
Field Details
-
NAME
The name of this variable.- See Also:
-
-
Constructor Details
-
UrlEncodeVar
public UrlEncodeVar()Constructor.
-
-
Method Details