Class JsonResponse

    • Constructor Detail

      • JsonResponse

        public JsonResponse​(int code,
                            java.lang.String data)
    • Method Detail

      • render

        public void render​(java.io.OutputStream outputStream)
                    throws java.io.IOException
        Description copied from class: HttpResponse
        Marshal this response to the network layer. The caller is responsible for flushing and closing outputStream.
        Specified by:
        render in class HttpResponse
        Throws:
        java.io.IOException