public class FastJsonJsonView
extends org.springframework.web.servlet.view.AbstractView
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_CONTENT_TYPE |
| 构造器和说明 |
|---|
FastJsonJsonView() |
| 限定符和类型 | 方法和说明 |
|---|---|
Charset |
getCharset() |
String |
getDateFormat() |
SerializerFeature[] |
getFeatures() |
SerializeFilter[] |
getFilters() |
boolean |
isExtractValueFromSingleKeyModel() |
void |
setCharset(Charset charset) |
void |
setDateFormat(String dateFormat) |
void |
setDisableCaching(boolean disableCaching)
Disables caching of the generated JSON.
|
void |
setExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel) |
void |
setFeatures(SerializerFeature... features) |
void |
setFilters(SerializeFilter... filters) |
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, toString@Deprecated public void setSerializerFeature(SerializerFeature... features)
public Charset getCharset()
public void setCharset(Charset charset)
public String getDateFormat()
public void setDateFormat(String dateFormat)
public SerializerFeature[] getFeatures()
public void setFeatures(SerializerFeature... features)
public SerializeFilter[] getFilters()
public void setFilters(SerializeFilter... filters)
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–2016 Alibaba Group. All rights reserved.