com.kremerk.commandprocessor.response
Class JsonResponse

java.lang.Object
  extended by com.kremerk.commandprocessor.response.JsonResponse
All Implemented Interfaces:
Response

public class JsonResponse
extends java.lang.Object
implements Response


Constructor Summary
JsonResponse(int status, java.lang.String message, org.json.JSONArray data)
           
JsonResponse(org.json.JSONArray data)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getResponse()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonResponse

public JsonResponse(org.json.JSONArray data)

JsonResponse

public JsonResponse(int status,
                    java.lang.String message,
                    org.json.JSONArray data)
Method Detail

getResponse

public java.lang.String getResponse()
Specified by:
getResponse in interface Response

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Response