HttpHelper.RequestRunnable

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

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


Runnable for making requests with runEscalatingTimedRetry(long, long, long, long, IRunnableResult).

Summary

Public constructors

HttpHelper.RequestRunnable(String url)

Public methods

void cancel()

Cancel the operation.

Exception getException()

Returns the last Exception that occurred when performing run().

String getResponse()
String getUrl()

Protected methods

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

Public constructors

HttpHelper.RequestRunnable

HttpHelper.RequestRunnable (String url)

Parameters
url String

Public methods

cancel

void cancel ()

Cancel the operation.

getException

Exception getException ()

Returns the last Exception that occurred when performing run().

Returns
Exception

getResponse

String getResponse ()

Returns
String

getUrl

String getUrl ()

Returns
String

Protected methods

setException

void setException (Exception e)

Parameters
e Exception

setResponse

void setResponse (String response)

Parameters
response String