HttpHelper.RequestRunnable

public abstract class HttpHelper.RequestRunnable
extends Object implements IRunUtil.IRunnableResult

java.lang.Object
com.android.tradefed.util.net.HttpHelper.RequestRunnable


เรียกใช้สำหรับการส่งคำขอด้วย IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)

สรุป

ช่างก่อสร้างสาธารณะ

RequestRunnable(String url)

วิธีการสาธารณะ

void cancel()

ยกเลิกการดำเนินการ

Exception getException()

แสดงผล Exception ล่าสุดที่เกิดขึ้นเมื่อดำเนินการเรียกใช้()

String getResponse()
String getUrl()

วิธีการป้องกัน

void setException(Exception e)
void setResponse(String response)

ช่างก่อสร้างสาธารณะ

เรียกใช้คำขอได้

public RequestRunnable (String url)

พารามิเตอร์
url String

วิธีการสาธารณะ

ยกเลิก

public void cancel ()

ยกเลิกการดำเนินการ

getException

public Exception getException ()

แสดงผล Exception ล่าสุดที่เกิดขึ้นเมื่อดำเนินการเรียกใช้()

คิกรีเทิร์น
Exception

GetResponse

public String getResponse ()

คิกรีเทิร์น
String

getUrl

public String getUrl ()

คิกรีเทิร์น
String

วิธีการป้องกัน

setException

protected void setException (Exception e)

พารามิเตอร์
e Exception

setResponse

protected void setResponse (String response)

พารามิเตอร์
response String