org.mentawai.ajax.renderer
Class JSONMapAjaxRenderer

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

public class JSONMapAjaxRenderer
extends java.lang.Object
implements AjaxRenderer

Expect a java.util.Map or a org.json.JSONObject in the output.

Author:
Davi Luan Carneiro

Field Summary
 
Fields inherited from interface org.mentawai.ajax.AjaxRenderer
APP_JSON, APP_URLENCODED, TEXT_HTML, TEXT_XML
 
Constructor Summary
JSONMapAjaxRenderer()
           
 
Method Summary
 java.lang.String encode(java.lang.Object obj, java.util.Locale loc, boolean pretty)
           
 java.lang.String getCharset()
           
 java.lang.String getContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONMapAjaxRenderer

public JSONMapAjaxRenderer()
Method Detail

encode

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

getContentType

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

getCharset

public java.lang.String getCharset()
Specified by:
getCharset in interface AjaxRenderer


Copyright © 2005 Mentawai Team. All Rights Reserved.