com.stackmob.sdk.callback
Class StackMobNoopCallback

java.lang.Object
  extended by com.stackmob.sdk.callback.StackMobRawCallback
      extended by com.stackmob.sdk.callback.StackMobCallback
          extended by com.stackmob.sdk.callback.StackMobNoopCallback

public class StackMobNoopCallback
extends StackMobCallback

A callback that does absolutely nothing regardless of success or failure. Supply this to StackMob calls when you don't care about the results

See Also:
StackMobCallback

Field Summary
 
Fields inherited from class com.stackmob.sdk.callback.StackMobRawCallback
requestBody, requestHeaders, requestURL, requestVerb, responseBody, responseHeaders, responseStatusCode, retriesRemaining
 
Constructor Summary
StackMobNoopCallback()
           
 
Method Summary
 void failure(StackMobException e)
          override this method to handle errors
 void success(String responseBody)
          override this method to handles cases where a call has succeeded.
 
Methods inherited from class com.stackmob.sdk.callback.StackMobCallback
done, temporaryPasswordResetRequired, unsent
 
Methods inherited from class com.stackmob.sdk.callback.StackMobRawCallback
getRetriesRemaining, getTotalNumberOfItemsFromContentRange, getTotalObjectCountFromPagination, retry, setDone, setRetriesRemaining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackMobNoopCallback

public StackMobNoopCallback()
Method Detail

success

public void success(String responseBody)
Description copied from class: StackMobCallback
override this method to handles cases where a call has succeeded.

Specified by:
success in class StackMobCallback
Parameters:
responseBody - the response string received from StackMob

failure

public void failure(StackMobException e)
Description copied from class: StackMobCallback
override this method to handle errors

Specified by:
failure in class StackMobCallback
Parameters:
e - a representation of the error that occurred


Copyright © 2013 StackMob. All Rights Reserved.