/** * Merges the transform and its parameters with other parameters * of the request. * * Ordinarily, and application does not need to call this method. * @param currentParams the other parameters * @return the union of the other parameters and the transform parameters */ public Map<String,List<String>> merge(Map<String,List<String>> currentParams) { Map<String,List<String>> params = (currentParams != null) ? currentParams : new RequestParameters(); params.put("transform", Arrays.asList(getName())); for (Map.Entry<String, List<String>> entry: entrySet()) { params.put("trans:"+entry.getKey(), entry.getValue()); } return params; } }
/** * Merges the transform and its parameters with other parameters * of the request. * * Ordinarily, and application does not need to call this method. * @param currentParams the other parameters * @return the union of the other parameters and the transform parameters */ public Map<String,List<String>> merge(Map<String,List<String>> currentParams) { Map<String,List<String>> params = (currentParams != null) ? currentParams : new RequestParameters(); params.put("transform", Arrays.asList(getName())); for (Map.Entry<String, List<String>> entry: entrySet()) { params.put("trans:"+entry.getKey(), entry.getValue()); } return params; } }