org.springframework.web.servlet.view.json
Class JsonView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.json.JsonView
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View
public class JsonView
- extends org.springframework.web.servlet.view.AbstractView
Fields inherited from class org.springframework.web.servlet.view.AbstractView |
DEFAULT_CONTENT_TYPE |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, toString, writeToResponse |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
DEFAULT_JSON_CONTENT_TYPE
public static final String DEFAULT_JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
DEFAULT_HIJACKSAVE_PREFIX_POSTFIX
public static final String DEFAULT_HIJACKSAVE_PREFIX_POSTFIX
- See Also:
- Constant Field Values
JsonView
public JsonView()
renderMergedOutputModel
public void renderMergedOutputModel(Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
renderMergedOutputModel
in class org.springframework.web.servlet.view.AbstractView
- Throws:
Exception
hasErrors
protected boolean hasErrors(org.springframework.web.servlet.support.RequestContext rc,
org.springframework.validation.BindingResult br)
triggerJsonErrors
protected void triggerJsonErrors(Map model,
org.springframework.web.servlet.support.RequestContext rc,
org.springframework.validation.BindingResult br,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Throws:
Exception
getBindingResult
protected org.springframework.validation.BindingResult getBindingResult(Map model)
getCommandName
protected String getCommandName(org.springframework.validation.BindingResult br)
getRequestContext
protected org.springframework.web.servlet.support.RequestContext getRequestContext(Map model)
getConfiguratorTemplateRegistry
protected JsonWriterConfiguratorTemplateRegistry getConfiguratorTemplateRegistry(javax.servlet.http.HttpServletRequest request)
getJsonErrors
public List<JsonErrorHandler> getJsonErrors()
setJsonErrors
public void setJsonErrors(List<JsonErrorHandler> jsonErrors)
getJsonViewCallback
public JsonViewCallback getJsonViewCallback()
setJsonViewCallback
public void setJsonViewCallback(JsonViewCallback jsonViewCallback)
getJsonWriter
public JsonStringWriter getJsonWriter()
setJsonWriter
public void setJsonWriter(JsonStringWriter jsonWriter)
getEncoding
public String getEncoding()
setEncoding
public void setEncoding(String encoding)
getHijackSafe
public boolean getHijackSafe()
setHijackSafe
public void setHijackSafe(boolean hijackSafe)
getHijackSafePrefixPostFix
public String getHijackSafePrefixPostFix()
setHijackSafePrefixPostFix
public void setHijackSafePrefixPostFix(String hijackSafePrefixPostFix)
getJsonViewFilter
public JsonViewFilter getJsonViewFilter()
setJsonViewFilter
public void setJsonViewFilter(JsonViewFilter jsonViewFilter)
Copyright © 2010. All Rights Reserved.