RequestEntityImplJSON.java
427 Bytes
package com.mobithink.tracesdk.rest.client;
import org.apache.http.HttpEntity;
import android.util.Log;
import com.mobithink.tracesdk.json.JSONObject;
public class RequestEntityImplJSON extends RequestEntity {
@Override
public HttpEntity get(UriBuilder uriBuilder, MultivaluedMap<String, String> headers) {
String entityStr = new JSONObject(uriBuilder.getQuery()).toString();
return getStringEntity(entityStr);
}
}