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 ล่าสุดที่เกิดขึ้นเมื่อเรียกใช้ run()

String getResponse()
String getUrl()

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

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

ตัวสร้างแบบสาธารณะ

RequestRunnable

public RequestRunnable (String url)

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

เมธอดสาธารณะ

ยกเลิก

public void cancel ()

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

getException

public Exception getException ()

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

คิกรีเทิร์น
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