Home > Contents > Index >
Utilities.stringFromValList
Creates a URL-like set of name/value pairs from a map.
This method has two variants:
- stringFromValList (Variant 1) creates a URL-like set of name/value pairs from a map.
- stringFromValList (Variant 2) creates a URL-like set of name/value pairs from a map and allows you to encode names and values from outside of Sites.
Utilities.stringFromValList
Creates a URL-like set of name/value pairs from a map.
Syntax
public static String stringFromValList(Map map)Parameters
map
- The map you want to compress into a string.
Description
The
stringFromValList
method creates a URL-like set of name/value pairs from a map; for example,x=y&a=b&c=d
. In previous versions of Sites,stringFromValList
accepted anIList
rather than a map. In the current version of Sites, IList is a map.
stringFromValList
returns a string, but that string needs to be encoded to be URL safe. Note that empty strings are not preserved.Returns
The string of name/value pairs.
Utilities.stringFromValList
Creates a URL-like set of name/value pairs from a map.
Syntax
public static String stringFromValList(Map map, Boolean bEncode)Parameters
map
- The map you want to compress into a string.
bEncode
- Set this value to
true
to encode keys and values from outside Sites.
Description
The
stringFromValList
method creates a URL-like set of name/value pairs from a map; for example,x=y&a=b&c=d
. In previous versions of Sites,stringFromValList
accepted anIList
rather than a map. In the current version of Sites,IList
is a map.
stringFromValList
returns a string, but that string needs to be encoded to be URL safe. Note that empty strings are not preserved.Returns
The string of name/value pairs.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.