public class FastJsonJsonView
extends org.springframework.web.servlet.view.AbstractView
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_CONTENT_TYPE |
static Charset |
UTF8 |
| 构造器和说明 |
|---|
FastJsonJsonView() |
| 限定符和类型 | 方法和说明 |
|---|---|
Charset |
getCharset() |
SerializerFeature[] |
getFeatures() |
boolean |
isExtractValueFromSingleKeyModel() |
void |
setCharset(Charset charset) |
void |
setDisableCaching(boolean disableCaching)
Disables caching of the generated JSON.
|
void |
setExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel) |
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.
|
addStaticAttribute, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, toStringpublic static final Charset UTF8
@Deprecated public void setSerializerFeature(SerializerFeature... features)
public Charset getCharset()
public void setCharset(Charset charset)
public SerializerFeature[] getFeatures()
public void setFeatures(SerializerFeature... features)
public boolean isExtractValueFromSingleKeyModel()
public void setExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel)
public void setDisableCaching(boolean disableCaching)
Default is true, which will prevent the client from caching the generated JSON.
public void setUpdateContentLength(boolean updateContentLength)
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–2015 Alibaba Group. All rights reserved.