Class 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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      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)  
    • Field Detail

      • view

        protected final org.springframework.web.servlet.View view
        View to delegate.
    • 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:
        renderMergedOutputModel in class org.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.Exception
        Prepare merged output model before final rendering.
        Parameters:
        model - the model
        request - the request
        response - the response
        Throws:
        java.lang.Exception - the exception