org.springframework.flex.http
Class AmfView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.flex.http.AmfView
- All Implemented Interfaces:
- BeanNameAware, ApplicationContextAware, ServletContextAware, View
public class AmfView
- extends AbstractView
| Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, toString, writeToResponse |
DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
AmfView
public AmfView()
getRenderedAttributes
public Set<String> getRenderedAttributes()
- Returns the attributes in the model that should be rendered by this view.
setRenderedAttributes
public void setRenderedAttributes(Set<String> renderedAttributes)
- Sets the attributes in the model that should be rendered by this view. When set, all other model attributes will be
ignored.
setDisableCaching
public void setDisableCaching(boolean disableCaching)
- Disables caching of the generated AMF response.
Default is true, which will prevent the client from caching the generated AMF response.
prepareResponse
protected void prepareResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Overrides:
prepareResponse in class AbstractView
renderMergedOutputModel
protected void renderMergedOutputModel(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Specified by:
renderMergedOutputModel in class AbstractView
- Throws:
Exception
filterModel
protected Object filterModel(Map<String,Object> model)
- Filters out undesired attributes from the given model. The return value can be either another
Map, or a
single value object. If only a single attribute is present in the model map, that value will be returned instead
of the full map.
Default implementation removes BindingResult instances and entries not included in the renderedAttributes property.
- Parameters:
model - the model, as passed on to renderMergedOutputModel(java.util.Map, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
- Returns:
- the object to be rendered
Copyright © 2011. All Rights Reserved.