org.springframework.extensions.surf.mvc
Class ComponentView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.springframework.web.servlet.view.AbstractUrlBasedView
                  extended by org.springframework.extensions.surf.mvc.AbstractWebFrameworkView
                      extended by org.springframework.extensions.surf.mvc.ComponentView
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.View

public class ComponentView
extends AbstractWebFrameworkView

View implementation for a Surf Component A component can be any kind of Web Framework component (Web Script, JSP, JavaBean, etc) URLs are expected to be invoked as shown: ?c= -> runs the view mode for component ?c=&mode=view -> runs the view mode for component (and processes the full component) ?c=&mode=view&focus=header -> runs the view mode for component (and processes the 'header' of the component)) ?c=&mode=edit -> runs the edit mode for component ?c=&mode=edit&focus=footer -> runs the edit mode for component (and processes the 'footer' of the component) The component is then executed and its output streamed back.

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.View
RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
ComponentView(WebFrameworkServiceRegistry serviceRegistry)
           
 
Method Summary
protected  void exposeForwardRequestAttributes(javax.servlet.http.HttpServletRequest request)
          Expose forward request attributes.
protected  void renderMergedOutputModel(Map model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class org.springframework.extensions.surf.mvc.AbstractWebFrameworkView
getRenderService, getServiceRegistry, getWebFrameworkConfiguration, getWebFrameworkManager
 
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
 
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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentView

public ComponentView(WebFrameworkServiceRegistry serviceRegistry)
Method Detail

renderMergedOutputModel

protected 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

exposeForwardRequestAttributes

protected void exposeForwardRequestAttributes(javax.servlet.http.HttpServletRequest request)
Expose forward request attributes.

Parameters:
request - the request


Copyright © 2009 SpringSource, Inc. All Rights Reserved.