public class JsonView extends BaseView implements org.springframework.web.servlet.View
Modifier and Type | Class and Description |
---|---|
static class |
JsonView.Type |
Constructor and Description |
---|
JsonView() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
DataSourceProperties |
getDataSourceProperties() |
JsonView.Type |
getType() |
java.lang.String |
getXsl() |
void |
render(java.util.Map model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
render(java.lang.Object entity,
java.io.PrintWriter writer,
java.lang.String jsonpCallback,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Basic render method that may be used to render content with the cdmlib-remote api but without beeing in
a webapplication context.
|
void |
setDataSourceProperties(DataSourceProperties dataSourceProperties) |
void |
setJsonConfig(net.sf.json.JsonConfig jsonConfig) |
void |
setType(JsonView.Type type)
Default is Type.JSON
|
void |
setXsl(java.lang.String xsl) |
getResponseData
public static final Logger logger
public DataSourceProperties getDataSourceProperties()
public void setDataSourceProperties(DataSourceProperties dataSourceProperties)
public void setXsl(java.lang.String xsl)
public java.lang.String getXsl()
public JsonView.Type getType()
public void setType(JsonView.Type type)
type
- public void setJsonConfig(net.sf.json.JsonConfig jsonConfig)
public java.lang.String getContentType()
getContentType
in interface org.springframework.web.servlet.View
public void render(java.lang.Object entity, java.io.PrintWriter writer, java.lang.String jsonpCallback, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
BaseView
public void render(java.util.Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
render
in interface org.springframework.web.servlet.View
java.lang.Exception
Copyright © 2007-2020 EDIT. All Rights Reserved.