Class ResponseJson


  • public class ResponseJson
    extends java.lang.Object
    Responsible for handling JSON response output.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseJson()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void doResponseJson​(HttpAction action, java.util.Iterator<JsonObject> jsonItem)
      Outputs a JSON query result
      static void setHttpResponse​(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, java.lang.String contentType, java.lang.String charset)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseJson

        public ResponseJson()
    • Method Detail

      • doResponseJson

        public static void doResponseJson​(HttpAction action,
                                          java.util.Iterator<JsonObject> jsonItem)
        Outputs a JSON query result
        Parameters:
        action - HTTP action
        jsonItem - a ResultSetJsonStream instance
      • setHttpResponse

        public static void setHttpResponse​(javax.servlet.http.HttpServletRequest httpRequest,
                                           javax.servlet.http.HttpServletResponse httpResponse,
                                           java.lang.String contentType,
                                           java.lang.String charset)