Class JSONResponse

java.lang.Object
it.uniroma2.art.semanticturkey.servlet.JSONResponse
All Implemented Interfaces:
Response
Direct Known Subclasses:
JSONResponseProblem, JSONResponseREPLY

public abstract class JSONResponse extends Object implements Response
Defines a JSON realization for Response interface
  • Method Details

    • getResponseObject

      public org.json.JSONObject getResponseObject()
      Specified by:
      getResponseObject in interface Response
    • getResponseContent

      public String getResponseContent()
      Specified by:
      getResponseContent in interface Response
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getXMLObject

      public String getXMLObject() throws org.json.JSONException
      Throws:
      org.json.JSONException
    • isAffirmative

      public abstract boolean isAffirmative()
      Specified by:
      isAffirmative in interface Response