|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.protocol.ResponseItem
public final class ResponseItem
Represents the response items that get handed back as json within the DataResponse.
| Constructor Summary | |
|---|---|
ResponseItem(int errorCode,
String errorMessage)
Create a ResponseItem specifying the ResponseError and error Message. |
|
ResponseItem(int errorCode,
String errorMessage,
Object response)
Create a ResponseItem specifying the ResponseError and error Message. |
|
ResponseItem(Object response)
Create a ResponseItem specifying a value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getErrorCode()
Get the error code associated with this ResponseItem. |
String |
getErrorMessage()
Get the Error Message associated with this Response Item. |
Object |
getResponse()
Get the response value. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResponseItem(int errorCode,
String errorMessage)
errorCode - an RPC error codeerrorMessage - the Error Message
public ResponseItem(int errorCode,
String errorMessage,
Object response)
errorCode - an RPC error codeerrorMessage - the Error Messageresponse - the application specific value that will be sent as
as part of "data" section of the error.public ResponseItem(Object response)
| Method Detail |
|---|
public Object getResponse()
public int getErrorCode()
public String getErrorMessage()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||