|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sponsorpay.sdk.android.publisher.currency.VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
private class VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
used to perform the HTTP requests on a background thread and be notified of its results on the
calling thread.
Field Summary | |
---|---|
boolean |
didTriggerException
Whether the request triggered a local exception, usually denoting a network connectivity problem. |
private java.lang.String |
mRequestUrl
URL for the request which will be performed in the background. |
private VirtualCurrencyConnector |
mVcc
Tightly coupled host VirtualCurrencyConnector . |
VirtualCurrencyConnector.RequestType |
requestType
Type of the request which will be performed in the background. |
java.lang.String |
responseBody
Server's response body. |
java.lang.String |
signature
Server's response signature, extracted of the "X-Sponsorpay-Response-Signature" header. |
private static java.lang.String |
SIGNATURE_HEADER
Custom SponsorPay HTTP header containing the signature of the response. |
int |
statusCode
Status code of the server's response. |
Constructor Summary | |
---|---|
VirtualCurrencyConnector.CurrencyServerRequestAsyncTask(VirtualCurrencyConnector vcc,
VirtualCurrencyConnector.RequestType requestType,
java.lang.String requestUrl)
Initializes a new instance whose #execute() still needs to be invoked to trigger the request. |
Method Summary | |
---|---|
protected java.lang.Void |
doInBackground(java.lang.Void... params)
Performs the request in the background. |
protected void |
onPostExecute(java.lang.Void result)
Called in the original thread when a response from the server is available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String SIGNATURE_HEADER
private VirtualCurrencyConnector mVcc
VirtualCurrencyConnector
.
private java.lang.String mRequestUrl
public VirtualCurrencyConnector.RequestType requestType
public int statusCode
public java.lang.String responseBody
public java.lang.String signature
public boolean didTriggerException
Constructor Detail |
---|
public VirtualCurrencyConnector.CurrencyServerRequestAsyncTask(VirtualCurrencyConnector vcc, VirtualCurrencyConnector.RequestType requestType, java.lang.String requestUrl)
#execute()
still needs to be invoked to trigger the request.
vcc
- Host VirtualCurrencyConnector
requestType
- Type of the request to be performed. See VirtualCurrencyConnector.RequestType
.requestUrl
- Url of the request to be performed.Method Detail |
---|
protected java.lang.Void doInBackground(java.lang.Void... params)
VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
when #execute(Void...)
is invoked.
-
protected void onPostExecute(java.lang.Void result)
VirtualCurrencyConnector
.
result
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |