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)

公用建構函式

RequestRunnable

public RequestRunnable (String url)

參數
url String

公用方法

cancel

public void cancel ()

取消作業。

getException

public Exception getException ()

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