test_class.declarator: server = new MockServerRule(this, 5000)
test_class.modifier: @Rule
    public
test_class.original_string: @Rule
    public MockServerRule server = new MockServerRule(this, 5000);
test_class.type: MockServerRule
test_class.var_name: server
test_class.declarator: expected = "{ message: 'test ok' }"
test_class.modifier: private
test_class.original_string: private String expected = "{ message: 'test ok' }";
test_class.type: String
test_class.var_name: expected
test_class.declarator: requestJson="{\"token\", \"12345\"}"
test_class.modifier: private
test_class.original_string: private String requestJson="{\"token\", \"12345\"}";
test_class.type: String
test_class.var_name: requestJson
test_class.file: support/core/src/test/java/com/meiduimall/core/util/HttpUtilsTest.java
test_class.identifier: HttpUtilsTest
test_case.body: @Test
    public void testForm() throws Exception {
  	  Map<String,String> param=Maps.newHashMap();
  	  param.put("token", "12345");
  	  String result = HttpUtils.form("http://localhost:5000/util/test",param);
  	  assertEquals(expected,result);
    }
test_case.class_method_signature: HttpUtilsTest.testForm()
test_case.full_signature: @Test public void testForm()
test_case.identifier: testForm
test_case.invocations: newHashMap put form assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testForm()
focal_class.declarator: logger = LoggerFactory.getLogger(HttpUtils.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = LoggerFactory.getLogger(HttpUtils.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: support/core/src/main/java/com/meiduimall/core/util/HttpUtils.java
focal_class.identifier: HttpUtils
focal_class.class_method_signature: HttpUtils.get(String url)
focal_class.full_signature: public static String get(String url)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String get(String url)
focal_class.class_method_signature: HttpUtils.delete(String url)
focal_class.full_signature: public static String delete(String url)
focal_class.identifier: delete
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String delete(String url)
focal_class.class_method_signature: HttpUtils.post(String url, String sendData,Map<String,String> headers)
focal_class.full_signature: public static String post(String url, String sendData,Map<String,String> headers)
focal_class.identifier: post
focal_class.modifiers: public static
focal_class.parameters: (String url, String sendData,Map<String,String> headers)
focal_class.return: String
focal_class.signature: String post(String url, String sendData,Map<String,String> headers)
focal_class.class_method_signature: HttpUtils.put(String url, String sendData,Map<String,String> headers)
focal_class.full_signature: public static String put(String url, String sendData,Map<String,String> headers)
focal_class.identifier: put
focal_class.modifiers: public static
focal_class.parameters: (String url, String sendData,Map<String,String> headers)
focal_class.return: String
focal_class.signature: String put(String url, String sendData,Map<String,String> headers)
focal_class.class_method_signature: HttpUtils.get(String url, String decodeCharset)
focal_class.full_signature: public static String get(String url, String decodeCharset)
focal_class.identifier: get
focal_class.modifiers: public static
focal_class.parameters: (String url, String decodeCharset)
focal_class.return: String
focal_class.signature: String get(String url, String decodeCharset)
focal_class.class_method_signature: HttpUtils.delete(String url, String decodeCharset)
focal_class.full_signature: public static String delete(String url, String decodeCharset)
focal_class.identifier: delete
focal_class.modifiers: public static
focal_class.parameters: (String url, String decodeCharset)
focal_class.return: String
focal_class.signature: String delete(String url, String decodeCharset)
focal_class.class_method_signature: HttpUtils.post(String url, String sendData, Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.full_signature: public static String post(String url, String sendData, Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.identifier: post
focal_class.modifiers: public static
focal_class.parameters: (String url, String sendData, Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.return: String
focal_class.signature: String post(String url, String sendData, Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.class_method_signature: HttpUtils.put(String url, String sendData,Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.full_signature: public static String put(String url, String sendData,Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.identifier: put
focal_class.modifiers: public static
focal_class.parameters: (String url, String sendData,Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.return: String
focal_class.signature: String put(String url, String sendData,Map<String,String> headers,String encodeCharset,String decodeCharset)
focal_class.class_method_signature: HttpUtils.form(String url, Map<String,String> sendData)
focal_class.full_signature: public static String form(String url, Map<String,String> sendData)
focal_class.identifier: form
focal_class.modifiers: public static
focal_class.parameters: (String url, Map<String,String> sendData)
focal_class.return: String
focal_class.signature: String form(String url, Map<String,String> sendData)
focal_class.class_method_signature: HttpUtils.HttpResToString(HttpResponse response, String decodeCharset)
focal_class.full_signature: private static String HttpResToString(HttpResponse response, String decodeCharset)
focal_class.identifier: HttpResToString
focal_class.modifiers: private static
focal_class.parameters: (HttpResponse response, String decodeCharset)
focal_class.return: String
focal_class.signature: String HttpResToString(HttpResponse response, String decodeCharset)
focal_class.class_method_signature: HttpUtils.config(HttpRequestBase request)
focal_class.full_signature: private static void config(HttpRequestBase request)
focal_class.identifier: config
focal_class.modifiers: private static
focal_class.parameters: (HttpRequestBase request)
focal_class.return: void
focal_class.signature: void config(HttpRequestBase request)
focal_class.class_method_signature: HttpUtils.close(CloseableHttpClient httpClient)
focal_class.full_signature: private static void close(CloseableHttpClient httpClient)
focal_class.identifier: close
focal_class.modifiers: private static
focal_class.parameters: (CloseableHttpClient httpClient)
focal_class.return: void
focal_class.signature: void close(CloseableHttpClient httpClient)
focal_method.body: public static String form(String url, Map<String,String> sendData)
  			throws IOException {
  		CloseableHttpClient httpClient = HttpClients.createDefault();
  		try {
  			HttpPost httpPost = new HttpPost(url);
  			config(httpPost);
  			Set<Map.Entry<String,String>> dataSet=sendData.entrySet();
  			List<NameValuePair> formParams = new ArrayList<NameValuePair>();
  			for(Entry<String,String> entry:dataSet){
  				formParams.add(new BasicNameValuePair(entry.getKey(),entry.getValue()));
  			}
  			UrlEncodedFormEntity uefEntity= new UrlEncodedFormEntity(formParams, Consts.UTF_8.name());
  			httpPost.setEntity(uefEntity);
  			HttpResponse response = httpClient.execute(httpPost);
  			return HttpResToString(response, Consts.UTF_8.name());
  		} finally {
  			close(httpClient);
  		}
  		
  	}
focal_method.class_method_signature: HttpUtils.form(String url, Map<String,String> sendData)
focal_method.full_signature: public static String form(String url, Map<String,String> sendData)
focal_method.identifier: form
focal_method.invocations: createDefault config entrySet add getKey getValue name setEntity execute HttpResToString name close
focal_method.modifiers: public static
focal_method.parameters: (String url, Map<String,String> sendData)
focal_method.return: String
focal_method.signature: String form(String url, Map<String,String> sendData)