public class FastJsonJsonView
extends org.springframework.web.servlet.view.AbstractView
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONTENT_TYPE |
static Charset |
UTF8 |
| Constructor and Description |
|---|
FastJsonJsonView() |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
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, toStringsetServletContextpublic static final String DEFAULT_CONTENT_TYPE
public 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–2020 Alibaba Group. All rights reserved.