*/
private Map<String,List<String>> prepareParameters() {
Map<String,List<String>> parameters = new HashMap<String,List<String>>();
log.debug("Preparing parameters...");
HttpRequestContext request = this.httpContext.getRequest();
// Parameters for a GET request
MultivaluedMap<String,String> queryParameters = request.getQueryParameters();
log.debug("... {} query parameters found", queryParameters.size());
for (Entry<String,List<String>> e : queryParameters.entrySet()) {
parameters.put(e.getKey(), e.getValue());
}
// Parameters for a POST request with content-type
// application/x-www-form-urlencoded
MultivaluedMap<String,String> formParameters = request.getFormParameters();
log.debug("... {} form urlencoded parameters found", formParameters.size());
for (Entry<String,List<String>> e : formParameters.entrySet()) {
parameters.put(e.getKey(), e.getValue());
}
log.debug("Parameters prepared");