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