com.stackmob.sdk.callback
Class StackMobCallback
java.lang.Object
com.stackmob.sdk.callback.StackMobRawCallback
com.stackmob.sdk.callback.StackMobCallback
- Direct Known Subclasses:
- StackMobIntermediaryCallback, StackMobNoopCallback
public abstract class StackMobCallback
- extends StackMobRawCallback
|
Method Summary |
void |
done(HttpVerb requestVerb,
java.lang.String requestURL,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> requestHeaders,
java.lang.String requestBody,
java.lang.Integer responseStatusCode,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> responseHeaders,
byte[] responseBody)
the method that will be called when the call to StackMob is complete. |
abstract void |
failure(StackMobException e)
|
abstract void |
success(java.lang.String responseBody)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackMobCallback
public StackMobCallback()
done
public void done(HttpVerb requestVerb,
java.lang.String requestURL,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> requestHeaders,
java.lang.String requestBody,
java.lang.Integer responseStatusCode,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> responseHeaders,
byte[] responseBody)
- Description copied from class:
StackMobRawCallback
- the method that will be called when the call to StackMob is complete. may be executed in a background thread
- Specified by:
done in class StackMobRawCallback
- Parameters:
requestVerb - the HTTP verb that was requestedrequestURL - the URL that was requestedrequestHeaders - the headers in the requestrequestBody - the body of the request. will be an empty string for GET, DELETE, etc...responseStatusCode - the status code of the HTTP response from StackMobresponseHeaders - the response headers from StackMobresponseBody - the response body from StackMob
success
public abstract void success(java.lang.String responseBody)
failure
public abstract void failure(StackMobException e)
Copyright © 2012 StackMob. All Rights Reserved.