Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.stringFromValList

Creates a URL-like set of name/value pairs from a map.

This method has two variants:


Utilities.stringFromValList

Creates a URL-like set of name/value pairs from a map.

Syntax

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 Content Server, stringFromValList accepted an IList rather than a map. In the current version of Content Server, 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

Parameters

map
The map you want to compress into a string.

bEncode
Set this value to true to encode keys and values from outside Content Server.

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 Content Server, stringFromValList accepted an IList rather than a map. In the current version of Content Server, 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 >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.