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 |