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)
发出请求。
概括
公共构造函数
请求可运行
public RequestRunnable (String url)
公共方法
取消
public void cancel ()
取消操作。
获取异常
public Exception getException ()
返回执行 run() 时发生的最后一个Exception
。
获取响应
public String getResponse ()
获取网址
public String getUrl ()
受保护的方法
设置异常
protected void setException (Exception e)
设置响应
protected void setResponse (String response)