public class FastJsonJsonView
extends org.springframework.web.servlet.view.AbstractView
AbstractView| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_CONTENT_TYPE
default content type
|
| 构造器和说明 |
|---|
FastJsonJsonView()
Set default param.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Charset |
getCharset()
已过时。
|
String |
getDateFormat()
已过时。
|
FastJsonConfig |
getFastJsonConfig() |
SerializerFeature[] |
getFeatures()
已过时。
|
SerializeFilter[] |
getFilters()
已过时。
|
boolean |
isExtractValueFromSingleKeyModel()
Check extractValueFromSingleKeyModel.
|
void |
setCharset(Charset charset)
已过时。
|
void |
setDateFormat(String dateFormat)
已过时。
|
void |
setDisableCaching(boolean disableCaching)
Disables caching of the generated JSON.
|
void |
setExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel)
Set extractValueFromSingleKeyModel.
|
void |
setFastJsonConfig(FastJsonConfig fastJsonConfig) |
void |
setFeatures(SerializerFeature... features)
已过时。
|
void |
setFilters(SerializeFilter... filters)
已过时。
|
void |
setRenderedAttributes(Set<String> renderedAttributes)
Set 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, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, toStringpublic FastJsonConfig getFastJsonConfig()
public void setFastJsonConfig(FastJsonConfig fastJsonConfig)
fastJsonConfig - the fastJsonConfig to set.@Deprecated public void setSerializerFeature(SerializerFeature... features)
@Deprecated public Charset getCharset()
@Deprecated public void setCharset(Charset charset)
@Deprecated public String getDateFormat()
@Deprecated public void setDateFormat(String dateFormat)
@Deprecated public SerializerFeature[] getFeatures()
@Deprecated public void setFeatures(SerializerFeature... features)
@Deprecated public SerializeFilter[] getFilters()
@Deprecated public void setFilters(SerializeFilter... filters)
public void setRenderedAttributes(Set<String> renderedAttributes)
renderedAttributes - renderedAttributespublic boolean isExtractValueFromSingleKeyModel()
public void setExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel)
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.