org.mentawai.ajax.renderer
Class JSONArrayAjaxRenderer

java.lang.Object
  extended by org.mentawai.ajax.renderer.JSONArrayAjaxRenderer
All Implemented Interfaces:
AjaxRenderer

public class JSONArrayAjaxRenderer
extends Object
implements AjaxRenderer

Expect a java.util.Collection or a JSONArray in the output.

Author:
Davi Luan Carneiro, Rubem Azenha (rubem.azenha@gmail.com)

Field Summary
 
Fields inherited from interface org.mentawai.ajax.AjaxRenderer
APP_JS, APP_JSON, APP_URLENCODED, TEXT_HTML, TEXT_PLAIN, TEXT_XML
 
Constructor Summary
JSONArrayAjaxRenderer()
           
 
Method Summary
 String encode(Object obj, Locale loc, boolean pretty)
           
 String getCharset()
           
 String getContentType()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONArrayAjaxRenderer

public JSONArrayAjaxRenderer()
Method Detail

encode

public String encode(Object obj,
                     Locale loc,
                     boolean pretty)
              throws Exception
Specified by:
encode in interface AjaxRenderer
Throws:
Exception

getContentType

public String getContentType()
Specified by:
getContentType in interface AjaxRenderer

getCharset

public String getCharset()
Specified by:
getCharset in interface AjaxRenderer

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.