Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
Utilities.getParams
Creates a map or an
FTValList
from 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
FTValList
of parameters from the name/value pairs.
- getParams (Variant 2) builds a map of parameters from the name/value pairs.
Utilities.getParams
Builds an
FTValList
of 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
FTValList
of parameters.Example
The following code creates an
FTValList
object 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
true
enables decoding.
Home > Contents > Index > Oracle JAVA Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.