Beispiel #1
0
 /**
  * 异步 post请求 有参数 默认下载配置
  *
  * @param url 请求url
  * @param params 请求参数
  * @param object 回调函数
  * @return void
  * @author mars 2013-5-20 下午2:51:48
  */
 public static void ajaxWebServer(
     String url, String method, HashMap<String, String> params, Object object) {
   InternetConfig config = InternetConfig.defaultConfig();
   config.setMethod(method);
   config.setRequest_type(InternetConfig.request_webserver);
   ajaxWebServer(url, method, params, config, object);
 }
Beispiel #2
0
 /**
  * 异步 post请求 无参数 自定义下载配置
  *
  * @param url 请求连接
  * @param config 自定义下载配置
  * @param object 回调函数
  * @return void
  * @author mars 2013-5-20 下午2:50:48
  */
 public static void ajaxWebServer(
     String url, String method, InternetConfig config, Object object) {
   ajaxWebServer(url, method, null, config, object);
 }
Beispiel #3
0
 /**
  * 异步 post请求 无参数 默认下载配置器
  *
  * @param url 请求url
  * @param object 回调函数
  * @return void
  * @author mars 2013-5-20 下午2:49:57
  */
 public static void ajaxWebServer(String url, String method, Object object) {
   InternetConfig config = new InternetConfig();
   config.setMethod(method);
   config.setRequest_type(InternetConfig.request_webserver);
   ajaxWebServer(url, method, null, config, object);
 }