FormURLEncodedParser parser = new FormURLEncodedParser(defaultEncoding, form, 0, form.length());
for (RequestParameter parameter : parser) {
if (requestParameters.isEmpty()) {
requestParameters = new HashMap<String, RequestParameter>();
}
parameter.appendTo(requestParameters);
}
}
catch (IOException e) {
log.error("Cannot parse form post", e);
}