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
| 从接口 org.springframework.web.servlet.View 继承的字段 |
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE |
| 从类 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 |
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.