Class UrlEncodeVar

public class UrlEncodeVar extends SimpleVar
URL-encoding variable resolver.

The format for this var is "$UE{uriPart}".

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 Details

  • Constructor Details

  • Method Details

    • resolve

      public String resolve(VarResolverSession session, String key)
      Description copied from class: Var
      The interface that needs to be implemented for subclasses of SimpleVar.
      Specified by:
      resolve in class Var
      session - The session object used for a single instance of a var resolution.
      key - The inside argument of the variable.
      The resolved value.