HttpHelper.RequestRunnable

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

java.lang.Object
com.android.tradefed.util.net.HttpHelper.RequestRunnable


Executável para fazer solicitações com IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult) .

Resumo

Construtores públicos

RequestRunnable (String url)

Métodos públicos

void cancel ()

Cancele a operação.

Exception getException ()

Retorna a última Exception que ocorreu ao executar run().

String getResponse ()
String getUrl ()

Métodos protegidos

void setException (Exception e)
void setResponse (String response)

Construtores públicos

RequestRunnable

public RequestRunnable (String url)

Parâmetros
url String

Métodos públicos

cancelar

public void cancel ()

Cancele a operação.

getException

public Exception getException ()

Retorna a última Exception que ocorreu ao executar run().

devoluções
Exception

getResponse

public String getResponse ()

devoluções
String

getUrl

public String getUrl ()

devoluções
String

Métodos protegidos

setException

protected void setException (Exception e)

Parâmetros
e Exception

definirResposta

protected void setResponse (String response)

Parâmetros
response String