Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.getParams
Creates a map or an
FTValListfrom the name/value pairs that you supply.The name/value pairs must have the format:
a=b&c=d...This method has two variants:
- getParams (Variant 1) builds an
FTValListof parameters from the name/value pairs.
- getParams (Variant 2) builds a map of parameters from the name/value pairs.
Utilities.getParams
Builds an
FTValListof parameters given input in the form of"a=b&c=d..."Syntax
public static FTValList getParams(String in)Parameters
in- Input. Specify the string containing the parameters.
Returns
Returns an
FTValListof parameters.Example
The following code creates an
FTValListobject whose name/value pair list is initialized toa=10,c=12, andx=8.
FTValList ft = Utilities.getParams( "a=10&c=12&x=8" );
Utilities.getParams
Builds a map of parameters given input in the form of
"a=b&c=d..."Syntax
public static void getParams(String in, Map map, boolean bDecode)Parameters
in- Input. Specify the string containing the parameters.
map- The output map of the key/value pairs.
bDecode- A value of
trueenables decoding.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.