com.stackmob.core.rest
Class ResponseToProcess

java.lang.Object
  extended by com.stackmob.core.rest.ResponseToProcess

public class ResponseToProcess
extends Object

Represents the response to an API request. When returned, the response map will be processed into a JSON string and returned as a proper API response by StackMob.


Constructor Summary
ResponseToProcess(int responseCode)
          Creates a new API response to process.
ResponseToProcess(int responseCode, Map<String,?> responseMap)
          Creates a new API response to process.
 
Method Summary
 int getResponseCode()
          Returns the HTTP response code.
 Map<String,?> getResponseMap()
          Returns the response map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseToProcess

public ResponseToProcess(int responseCode,
                         Map<String,?> responseMap)
Creates a new API response to process.

Parameters:
responseCode - the HTTP response code
responseMap - the response map

ResponseToProcess

public ResponseToProcess(int responseCode)
Creates a new API response to process.

Parameters:
responseCode - the HTTP response code
Method Detail

getResponseCode

public int getResponseCode()
Returns the HTTP response code.

Returns:
the response code

getResponseMap

public Map<String,?> getResponseMap()
Returns the response map.

Returns:
the response map


Copyright © 2012 StackMob. All Rights Reserved.