HttpHelper.RequestRunnable

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

java.lang.オブジェクト
com.android.tradefed.util.net.HttpHelper.RequestRunnable


IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)を使用してリクエストを行うための Runnable。

まとめ

パブリックコンストラクター

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

操作をキャンセルします。

getException

public Exception getException ()

run() の実行時に発生した最後のExceptionを返します。

戻り値
Exception

getResponse

public String getResponse ()

戻り値
String

URLの取得

public String getUrl ()

戻り値
String

保護されたメソッド

setException

protected void setException (Exception e)

パラメーター
e Exception

setResponse

protected void setResponse (String response)

パラメーター
response String