|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sugestio.client.SugestioResult
public class SugestioResult
Constructor Summary | |
---|---|
SugestioResult()
Creates a new instance of SugestioResult. |
|
SugestioResult(boolean ok,
int code,
java.lang.String message)
Creates a new instance of SugestioResult. |
Method Summary | |
---|---|
int |
getCode()
Gets the HTTP response code received from the server. |
java.lang.String |
getMessage()
Gets the textual response from the server (if any), or a problem description in case of a local error. |
boolean |
isOk()
Indicates if the request was successful. |
void |
setCode(int code)
Set the HTTP response code. |
void |
setMessage(java.lang.String message)
Set the textual response from the server. |
void |
setOk(boolean ok)
Set the success indicator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SugestioResult()
public SugestioResult(boolean ok, int code, java.lang.String message)
ok
- request indicatorcode
- HTTP response code received from the servermessage
- textual response received from the serverMethod Detail |
---|
public void setOk(boolean ok)
ok
- public boolean isOk()
public void setMessage(java.lang.String message)
message
- public java.lang.String getMessage()
public void setCode(int code)
code
- public int getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |