Package org.apereo.cas.services.web.view
Class AbstractDelegatingCasView
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.view.AbstractView
-
- org.apereo.cas.services.web.view.AbstractCasView
-
- org.apereo.cas.services.web.view.AbstractDelegatingCasView
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware,org.springframework.web.servlet.View
public abstract class AbstractDelegatingCasView extends AbstractCasView
Renders and prepares CAS2 views. This view is responsible to just prep the base model, and delegates to a the real view to render the final output.- Since:
- 4.1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.web.servlet.ViewviewView to delegate.-
Fields inherited from class org.apereo.cas.services.web.view.AbstractCasView
attributesRenderer, authenticationAttributeReleasePolicy, authenticationRequestServiceSelectionStrategies, protocolAttributeEncoder, servicesManager, successResponse
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingCasView(boolean successResponse, org.apereo.cas.authentication.ProtocolAttributeEncoder protocolAttributeEncoder, org.apereo.cas.services.ServicesManager servicesManager, org.springframework.web.servlet.View view, org.apereo.cas.validation.AuthenticationAttributeReleasePolicy authenticationAttributeReleasePolicy, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationRequestServiceSelectionStrategies, org.apereo.cas.validation.CasProtocolAttributesRenderer attributesRenderer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidprepareMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Prepare merged output model before final rendering.protected voidrenderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)-
Methods inherited from class org.apereo.cas.services.web.view.AbstractCasView
getAssertionFrom, getCasPrincipalAttributes, getCasProtocolAuthenticationAttributes, getChainedAuthentications, getErrorCodeFrom, getErrorDescriptionFrom, getModelAttributes, getPrimaryAuthenticationFrom, getPrincipal, getPrincipalAttributesAsMultiValuedAttributes, getProxyGrantingTicketIou, getServiceFrom, prepareCasResponseAttributesForViewModel, prepareViewModelWithAuthenticationPrincipal, putCasResponseAttributesIntoModel, putIntoModel
-
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, formatViewName, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getRequestToExpose, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setRequestContextAttribute, setResponseContentType, toString, writeToResponse
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Constructor Detail
-
AbstractDelegatingCasView
protected AbstractDelegatingCasView(boolean successResponse, org.apereo.cas.authentication.ProtocolAttributeEncoder protocolAttributeEncoder, org.apereo.cas.services.ServicesManager servicesManager, org.springframework.web.servlet.View view, org.apereo.cas.validation.AuthenticationAttributeReleasePolicy authenticationAttributeReleasePolicy, org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationRequestServiceSelectionStrategies, org.apereo.cas.validation.CasProtocolAttributesRenderer attributesRenderer)
-
-
Method Detail
-
renderMergedOutputModel
protected void renderMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)- Specified by:
renderMergedOutputModelin classorg.springframework.web.servlet.view.AbstractView
-
prepareMergedOutputModel
protected abstract void prepareMergedOutputModel(java.util.Map<java.lang.String,java.lang.Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.ExceptionPrepare merged output model before final rendering.- Parameters:
model- the modelrequest- the requestresponse- the response- Throws:
java.lang.Exception- the exception
-
-