IRestApiHelper
public interface IRestApiHelper
com.android.tradefed.util.IRestApiHelper |
อินเทอร์เฟซตัวช่วยสำหรับการเรียก REST API
สรุป
วิธีการสาธารณะ |
---|
abstract HttpResponse | execute (String method, String[] uriParts, options, JSONObject data) execute (String method, String[] uriParts, options, JSONObject data) ดำเนินการคำขอ API |
วิธีการสาธารณะ
ดำเนินการ
public abstract HttpResponse execute (String method,
String[] uriParts,
options,
JSONObject data)
ดำเนินการคำขอ API
พารามิเตอร์ |
---|
method | String : วิธีการ HTTP ของการร้องขอ |
uriParts | String : ส่วน URI ที่เข้ารหัส URL ที่จะใช้ในการสร้าง URI คำขอ |
options | : ชื่อและค่าพารามิเตอร์ที่ไม่ได้เข้ารหัสที่ใช้ในการสร้างสตริงการสืบค้น |
data | JSONObject : ข้อมูลที่จะส่งไปพร้อมกับคำขอ |
การส่งคืน |
---|
HttpResponse | วัตถุ HttpResponse |