|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.signalsoftcorp.lst.meri.MERIResponse
Base class for all MERI response classes.
MERIConstants
Constructor Summary | |
MERIResponse()
Default constructor |
|
MERIResponse(int code)
Construct with a with a status code. |
|
MERIResponse(int code,
java.lang.String detail)
Construct with a status code and detail message. |
Method Summary | |
int |
getResponseCode()
Return the status code. |
java.lang.String |
getResponseDetail()
Get the response detail string. |
boolean |
isOk()
Returns true if the current response code indicates a success. |
void |
setResponseCode(int code)
Set the status code. |
void |
setResponseDetail(java.lang.String detail)
Set the response detail/description string. |
java.lang.String |
toString()
String representation of the response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MERIResponse()
public MERIResponse(int code)
code
- The status code.public MERIResponse(int code, java.lang.String detail)
code
- The status code. See MERIConstantsdetail
- An optional description of the response.Method Detail |
public int getResponseCode()
public void setResponseCode(int code)
code
- The new value for the code.public java.lang.String getResponseDetail()
public void setResponseDetail(java.lang.String detail)
detail
- The description.public boolean isOk()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |