org.springframework.web.servlet.view.json.writer.jsonlib
Class JsonlibJsonStringWriter

java.lang.Object
  extended by org.springframework.web.servlet.view.json.writer.jsonlib.JsonlibJsonStringWriter
All Implemented Interfaces:
JsonStringWriter

public class JsonlibJsonStringWriter
extends Object
implements JsonStringWriter


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from interface org.springframework.web.servlet.view.json.JsonStringWriter
MODE_KEEP_VALUETYPES_ALL, MODE_KEEP_VALUETYPES_BOOLEANS, MODE_KEEP_VALUETYPES_NONE
 
Constructor Summary
JsonlibJsonStringWriter()
           
 
Method Summary
 void convertAndWrite(Map model, JsonWriterConfiguratorTemplateRegistry configuratorTemplateRegistry, Writer writer, org.springframework.validation.BindingResult br)
           
 boolean isConvertAllMapValues()
           
 boolean isEnableJsonConfigSupport()
           
 boolean isKeepNullProperties()
           
 void setConvertAllMapValues(boolean convertAllMapValues)
           
 void setEnableJsonConfigSupport(boolean enableJsonConfigSupport)
           
 void setKeepNullProperties(boolean keepNullProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

JsonlibJsonStringWriter

public JsonlibJsonStringWriter()
Method Detail

convertAndWrite

public void convertAndWrite(Map model,
                            JsonWriterConfiguratorTemplateRegistry configuratorTemplateRegistry,
                            Writer writer,
                            org.springframework.validation.BindingResult br)
                     throws IOException
Specified by:
convertAndWrite in interface JsonStringWriter
Throws:
IOException

isEnableJsonConfigSupport

public boolean isEnableJsonConfigSupport()

setEnableJsonConfigSupport

public void setEnableJsonConfigSupport(boolean enableJsonConfigSupport)

isConvertAllMapValues

public boolean isConvertAllMapValues()

setConvertAllMapValues

public void setConvertAllMapValues(boolean convertAllMapValues)

isKeepNullProperties

public boolean isKeepNullProperties()

setKeepNullProperties

public void setKeepNullProperties(boolean keepNullProperties)


Copyright © 2010. All Rights Reserved.