public class ErrorHandlerPageView extends AbstractWebFrameworkView
Default view implementation for Surf system pages.
MIMETYPE_HTML| Constructor and Description |
|---|
ErrorHandlerPageView(WebFrameworkConfigElement webFrameworkConfiguration,
ModelObjectService modelObjectService,
ResourceService resourceService,
RenderService renderService,
TemplatesContainer templatesContainer)
This is the preferred constructor to use for instantiating a new
ErrorHandlerPageView because it allows
complete flexibility when rendering the view. |
ErrorHandlerPageView(WebFrameworkServiceRegistry serviceRegistry)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
renderView(RequestContext context)
To be implemented by view classes to provide render dispatch
|
exposeForwardRequestAttributes, getObjectService, getRenderService, getResourceService, getTemplatesContainer, getUriTokens, getUrlHelperFactory, getWebFrameworkConfiguration, lookupPage, populateRequestContext, renderMergedOutputModel, setupRequestContext, setUriTokens, setUrlHelperFactory, validateRequestContextafterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toStringaddStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponsegetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic ErrorHandlerPageView(WebFrameworkConfigElement webFrameworkConfiguration, ModelObjectService modelObjectService, ResourceService resourceService, RenderService renderService, TemplatesContainer templatesContainer)
This is the preferred constructor to use for instantiating a new ErrorHandlerPageView because it allows
complete flexibility when rendering the view. An AbstractWebFrameworkView is typically instantiated from
within a AbstractWebFrameworkViewResolver and all the arguments in the constructor signature should be
supplied to the AbstractWebFrameworkViewResolver as beans via the Spring configuration.
webFrameworkConfiguration - WebFrameworkConfigElementmodelObjectService - ModelObjectServiceresourceService - ResourceServicerenderService - RenderServicetemplatesContainer - TemplatesContainerpublic ErrorHandlerPageView(WebFrameworkServiceRegistry serviceRegistry)
This constructor should be avoided if possible because it relies on the supplied WebFrameworkServiceRegistry
argument to provide all the other Spring beans required to render the view. This means that there is no flexibility via
configuration to adapt different views to use different beans.
serviceRegistry - WebFrameworkServiceRegistryprotected void renderView(RequestContext context) throws Exception
AbstractWebFrameworkViewrenderView in class AbstractWebFrameworkViewcontext - the render contextExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.