Class JSONView

  • All Implemented Interfaces:
    View

    public class JSONView
    extends Object
    implements View
    Author:
    paul
    • Constructor Detail

      • JSONView

        public JSONView()
      • JSONView

        public JSONView​(String docType)
        Parameters:
        docType - e.g., text/html to switch from the default 'text/plain'.
    • Method Detail

      • render

        public void render​(Map<String,​?> map,
                           javax.servlet.http.HttpServletRequest reqest,
                           javax.servlet.http.HttpServletResponse response)
                    throws Exception
        Specified by:
        render in interface View
        Throws:
        Exception