|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.utils.Response
public final class Response
A generic response.
Constructor Summary | |
---|---|
Response(boolean ok,
java.lang.String key)
Construct a response with a response true or false and a message key. |
|
Response(boolean ok,
java.lang.String key,
java.lang.String[] replaces)
Construct a response with a response true or false, a message key and some replaces for the message. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Return internationalized the message. |
boolean |
isOk()
Indicate if the response is true or false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Response(boolean ok, java.lang.String key)
ok
- The real response.key
- The message key.public Response(boolean ok, java.lang.String key, java.lang.String[] replaces)
ok
- The real response.key
- The message key.replaces
- The message replaces.Method Detail |
---|
public boolean isOk()
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |