Here you can find the source of replaceMethodUriWithValues(String methodUri, Map
Parameter | Description |
---|---|
methodUri | a parameter |
urlParameterKeyValues | a parameter |
public static String replaceMethodUriWithValues(String methodUri, Map<String, String> urlParameterKeyValues)
//package com.java2s; //License from project: Apache License import java.util.Map; public class Main { /**//from w w w . j a v a2 s . c o m * Replace input parameters in the URL with correct values * @param methodUri * @param urlParameterKeyValues * @return */ public static String replaceMethodUriWithValues(String methodUri, Map<String, String> urlParameterKeyValues) { String uri = methodUri; for (String key : urlParameterKeyValues.keySet()) { uri = uri.replace(new String(key), new String(urlParameterKeyValues.get(key))); } return uri; } }