|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.core.rest.ResponseToProcess
public class ResponseToProcess
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.
| Nested Class Summary | |
|---|---|
static class |
ResponseToProcess.FieldType
|
| Constructor Summary | |
|---|---|
ResponseToProcess(int responseCode)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
byte[] responseByteArray)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
byte[] responseByteArray,
Map<String,String> responseHeaders)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
Map<String,?> responseMap)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
Map<String,?> responseMap,
Map<String,String> responseHeaders)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
String responseString)
Creates a new API response to process. |
|
ResponseToProcess(int responseCode,
String responseString,
Map<String,String> responseHeaders)
Creates a new API response to process. |
|
| Method Summary | |
|---|---|
byte[] |
getResponseByteArray()
Returns the response byte array. |
int |
getResponseCode()
Returns the HTTP response code. |
ResponseToProcess.FieldType |
getResponseField()
Returns the response byte array. |
Map<String,String> |
getResponseHeaders()
Returns the response headers. |
Map<String,?> |
getResponseMap()
Returns the response map. |
String |
getResponseString()
Returns the response String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResponseToProcess(int responseCode,
Map<String,?> responseMap,
Map<String,String> responseHeaders)
responseCode - the HTTP response coderesponseMap - the response mapresponseHeaders - the response headers
public ResponseToProcess(int responseCode,
String responseString,
Map<String,String> responseHeaders)
responseCode - the HTTP response coderesponseString - the response StringresponseHeaders - the response headers
public ResponseToProcess(int responseCode,
byte[] responseByteArray,
Map<String,String> responseHeaders)
responseCode - the HTTP response coderesponseByteArray - the response byte arrayresponseHeaders - the response headers
public ResponseToProcess(int responseCode,
Map<String,?> responseMap)
responseCode - the HTTP response coderesponseMap - the response map
public ResponseToProcess(int responseCode,
String responseString)
responseCode - the HTTP response coderesponseString - the response string
public ResponseToProcess(int responseCode,
byte[] responseByteArray)
responseCode - the HTTP response coderesponseByteArray - the response mappublic ResponseToProcess(int responseCode)
responseCode - the HTTP response code| Method Detail |
|---|
public int getResponseCode()
public Map<String,?> getResponseMap()
public String getResponseString()
public byte[] getResponseByteArray()
public ResponseToProcess.FieldType getResponseField()
public Map<String,String> getResponseHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||