org.springframework.extensions.surf.mvc
Class PageView

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.PageView
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 PageView
extends AbstractWebFrameworkView

Default view implementation for Surf pages

Author:
muzquiano

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Fields inherited from interface org.springframework.web.servlet.View
RESPONSE_STATUS_ATTRIBUTE
 
Constructor Summary
PageView(WebFrameworkServiceRegistry serviceRegistry)
           
 
Method Summary
protected static void debug(RequestContext context, String value)
          Debug logger helper function.
 void dispatchContext(RenderContext context)
           
 void dispatchPage(RenderContext context, String pageId)
           
 void dispatchPage(RenderContext context, String pageId, String formatId)
           
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)
           
 void setupRequestContext(RequestContext context, Map model, String pageId)
          Sets up the request context with page binding information
 
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

PageView

public PageView(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

dispatchContext

public void dispatchContext(RenderContext context)
                     throws RequestDispatchException
Throws:
RequestDispatchException

dispatchPage

public void dispatchPage(RenderContext context,
                         String pageId)
                  throws RequestDispatchException
Throws:
RequestDispatchException

dispatchPage

public void dispatchPage(RenderContext context,
                         String pageId,
                         String formatId)
                  throws RequestDispatchException
Throws:
RequestDispatchException

debug

protected static void debug(RequestContext context,
                            String value)
Debug logger helper function.

Parameters:
context -
value -

setupRequestContext

public void setupRequestContext(RequestContext context,
                                Map model,
                                String pageId)
                         throws PageMapperException
Sets up the request context with page binding information

Parameters:
context - the context
model - the model
pageId - the page id
Throws:
PageMapperException - the page mapper exception


Copyright © 2009 SpringSource, Inc. All Rights Reserved.