String encodedParams = ""; //$NON-NLS-1$
for (Enumeration e = getParameterNames(); e.hasMoreElements();) {
String name = (String) e.nextElement();
Vector values = getParameterValueList(name);
for (Enumeration e2 = values.elements(); e2.hasMoreElements();) {
String value = (String) e2.nextElement();
encodedParams += (encodedParams.length() > 0 ? "&" : "") + URLUTF8Encoder.encode(name, true) + "=" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
URLUTF8Encoder.encode(value, true);
}
}