HttpHelper.RequestRunnable

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

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


Runnable 用於使用IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)發出請求。

概括

公共構造函數

RequestRunnable (String url)

公共方法

void cancel ()

取消操作。

Exception getException ()

返回執行 run() 時發生的最後一個ERROR(/Exception)

String getResponse ()
String getUrl ()

受保護的方法

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

公共構造函數

請求可運行

public RequestRunnable (String url)

參數
url String

公共方法

取消

public void cancel ()

取消操作。

獲取異常

public Exception getException ()

返回執行 run() 時發生的最後一個ERROR(/Exception)

退貨
Exception

得到響應

public String getResponse ()

退貨
String

獲取網址

public String getUrl ()

退貨
String

受保護的方法

設置異常

protected void setException (Exception e)

參數
e Exception

設置響應

protected void setResponse (String response)

參數
response String