com.alibaba.fastjson.support.spring
类 FastJsonJsonView

java.lang.Object
  继承者 org.springframework.context.support.ApplicationObjectSupport
      继承者 org.springframework.web.context.support.WebApplicationObjectSupport
          继承者 org.springframework.web.servlet.view.AbstractView
              继承者 com.alibaba.fastjson.support.spring.FastJsonJsonView
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public class FastJsonJsonView
extends org.springframework.web.servlet.view.AbstractView

作者:
libinsong1204@gmail.com

字段摘要
static String DEFAULT_CONTENT_TYPE
           
static Charset UTF8
           
 
从接口 org.springframework.web.servlet.View 继承的字段
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
 
构造方法摘要
FastJsonJsonView()
           
 
方法摘要
 Charset getCharset()
           
 SerializerFeature[] getFeatures()
           
 void setCharset(Charset charset)
           
 void setDisableCaching(boolean disableCaching)
          Disables caching of the generated JSON.
 void setFeatures(SerializerFeature... features)
           
 void setRenderedAttributes(Set<String> renderedAttributes)
           
 void setSerializerFeature(SerializerFeature... features)
          已过时。 
 void setUpdateContentLength(boolean updateContentLength)
          Whether to update the 'Content-Length' header of the response.
 
从类 org.springframework.web.servlet.view.AbstractView 继承的方法
addStaticAttribute, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, toString
 
从类 org.springframework.web.context.support.WebApplicationObjectSupport 继承的方法
setServletContext
 
从类 org.springframework.context.support.ApplicationObjectSupport 继承的方法
getApplicationContext, setApplicationContext
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

DEFAULT_CONTENT_TYPE

public static final String DEFAULT_CONTENT_TYPE
另请参见:
常量字段值

UTF8

public static final Charset UTF8
构造方法详细信息

FastJsonJsonView

public FastJsonJsonView()
方法详细信息

setRenderedAttributes

public void setRenderedAttributes(Set<String> renderedAttributes)

setSerializerFeature

@Deprecated
public void setSerializerFeature(SerializerFeature... features)
已过时。 


getCharset

public Charset getCharset()

setCharset

public void setCharset(Charset charset)

getFeatures

public SerializerFeature[] getFeatures()

setFeatures

public void setFeatures(SerializerFeature... features)

setDisableCaching

public void setDisableCaching(boolean disableCaching)
Disables caching of the generated JSON.

Default is true, which will prevent the client from caching the generated JSON.


setUpdateContentLength

public void setUpdateContentLength(boolean updateContentLength)
Whether to update the 'Content-Length' header of the response. When set to true, the response is buffered in order to determine the content length and set the 'Content-Length' header of the response.

The default setting is false.



Copyright © 2012-2014 Alibaba Group. All Rights Reserved.