Class JSONResponseREPLY
java.lang.Object
it.uniroma2.art.semanticturkey.servlet.JSONResponse
it.uniroma2.art.semanticturkey.servlet.JSONResponseREPLY
- All Implemented Interfaces:
Response
,ResponseREPLY
Defines a JSON serialization based REPLY response
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
boolean
void
setReplyMessage
(String msg) void
void
void
setReplyStatusFAIL
(String msg) void
void
void
Methods inherited from class it.uniroma2.art.semanticturkey.servlet.JSONResponse
getResponseContent, getResponseObject, getXMLObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.uniroma2.art.semanticturkey.servlet.Response
getResponseContent, getResponseObject
-
Method Details
-
setReplyStatus
- Specified by:
setReplyStatus
in interfaceResponseREPLY
-
setReplyStatusOK
public void setReplyStatusOK()- Specified by:
setReplyStatusOK
in interfaceResponseREPLY
-
getReplyStatus
- Specified by:
getReplyStatus
in interfaceResponseREPLY
-
setReplyStatusWARNING
public void setReplyStatusWARNING()- Specified by:
setReplyStatusWARNING
in interfaceResponseREPLY
-
setReplyStatusWARNING
- Specified by:
setReplyStatusWARNING
in interfaceResponseREPLY
-
setReplyStatusFAIL
public void setReplyStatusFAIL()- Specified by:
setReplyStatusFAIL
in interfaceResponseREPLY
-
setReplyStatusFAIL
- Specified by:
setReplyStatusFAIL
in interfaceResponseREPLY
-
setReplyMessage
- Specified by:
setReplyMessage
in interfaceResponseREPLY
-
getReplyMessage
- Specified by:
getReplyMessage
in interfaceResponseREPLY
-
getDataElement
public org.json.JSONObject getDataElement() throws org.json.JSONException- Throws:
org.json.JSONException
-
isAffirmative
public boolean isAffirmative()- Specified by:
isAffirmative
in interfaceResponse
- Specified by:
isAffirmative
in classJSONResponse
-