java.util.Properties
. For each parameter, it also keeps a single value as the current parameter value.
@author David Jiao
@version $Revision: 206 $ $Date: 2009-03-19 10:43:34 -0500 (Thu, 19 Mar 2009) $
locked
property. This class can be used to safely expose Catalina internal parameter map objects to user classes without having to clone them in order to avoid modifications. When first created, a ParmaeterMap
instance is not locked.
@author Craig R. McClanahan
@version $Revision: 466595 $ $Date: 2006-10-21 23:24:41 +0100 (Sat, 21 Oct 2006) $
The accessor methods offered by this class taking a target type argument only need to support conversions to well know types like String, Number subclasses, Boolean and so on. @author Keith Donald
ParameterMap params = new ParameterMap(); params.add("app_id", "app_1234"); ParameterMap usage = new ParameterMap(); usage.add("hits", "3"); params.add("usage", usage); AuthorizeResponse response = serviceApi.authrep(params);
An example for a report might be: ParameterMap params = new ParameterMap(); params.add("app_id", "foo"); params.add("timestamp", fmt.print(new DateTime(2010, 4, 27, 15, 0))); ParameterMap usage = new ParameterMap(); usage.add("hits", "1"); params.add("usage", usage); ReportResponse response = serviceApi.report(params);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|