package com.qiyou.mb.android.utils;
import org.apache.http.HttpEntity;
import org.apache.http.protocol.HttpContext;

import android.content.Context;

import com.loopj.android.http.*;
 
public class QiyouRestClient {

 

  /*private static final String BASE_URL = "http://home:8080/qiyouji/";

  private static AsyncHttpClient client = new AsyncHttpClient();

  public static void get(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
      client.get(getAbsoluteUrl(url), params, responseHandler);
  }

  public static void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {
      client.post(getAbsoluteUrl(url), params, responseHandler);
  }

  public static void post (Context context, String url, HttpEntity entity, String contentType, 
		  ResponseHandlerInterface responseHandler){
	  client.post(context, getAbsoluteUrl(url),   entity,   contentType,  responseHandler);
  }

  public static  HttpContext getHttpContext(){
	  return client.getHttpContext();
  }

  private static String getAbsoluteUrl(String relativeUrl) {
      return BASE_URL + relativeUrl;
  }

public static void setCookieStore(PersistentCookieStore myCookieStore) {
	// TODO Auto-generated method stub
	client.setCookieStore(myCookieStore);
	
}
*/


}