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
IRunUtil#runEscalatingTimedRetry(long, long, long, long, IRunnableResult)
.
Summary
Public constructors | |
---|---|
RequestRunnable(String url)
|
Public methods | |
---|---|
void
|
cancel()
Cancel the operation. |
Exception
|
getException()
Returns the last |
String
|
getResponse()
|
String
|
getUrl()
|
Protected methods | |
---|---|
void
|
setException(Exception e)
|
void
|
setResponse(String response)
|
Public constructors
RequestRunnable
public RequestRunnable (String url)
Parameters | |
---|---|
url |
String |
Public methods
cancel
public void cancel ()
Cancel the operation.
getException
public Exception getException ()
Returns the last Exception
that occurred when performing run().
Returns | |
---|---|
Exception |
getResponse
public String getResponse ()
Returns | |
---|---|
String |
getUrl
public String getUrl ()
Returns | |
---|---|
String |
Protected methods
setException
protected void setException (Exception e)
Parameters | |
---|---|
e |
Exception |
setResponse
protected void setResponse (String response)
Parameters | |
---|---|
response |
String |