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 ()

傳回執行 run() 時發生的最後一個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() 時發生的最後一個Exception

退貨
Exception

獲取回應

public String getResponse ()

退貨
String

取得網址

public String getUrl ()

退貨
String

受保護的方法

設定異常

protected void setException (Exception e)

參數
e Exception

設定響應

protected void setResponse (String response)

參數
response String