Class AbstractWebApplicationServiceResponseBuilder

  • All Implemented Interfaces:
    java.io.Serializable, org.apereo.cas.authentication.principal.ResponseBuilder<org.apereo.cas.authentication.principal.WebApplicationService>, org.springframework.core.Ordered
    Direct Known Subclasses:
    WebApplicationServiceResponseBuilder

    public abstract class AbstractWebApplicationServiceResponseBuilder
    extends java.lang.Object
    implements org.apereo.cas.authentication.principal.ResponseBuilder<org.apereo.cas.authentication.principal.WebApplicationService>
    Abstract response builder that provides wrappers for building post and redirect responses.
    Since:
    4.2
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apereo.cas.services.ServicesManager servicesManager
      Services manager instance.
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apereo.cas.authentication.principal.Response buildHeader​(org.apereo.cas.authentication.principal.WebApplicationService service, java.util.Map<java.lang.String,​java.lang.String> parameters)
      Build header response.
      protected org.apereo.cas.authentication.principal.Response buildPost​(org.apereo.cas.authentication.principal.WebApplicationService service, java.util.Map<java.lang.String,​java.lang.String> parameters)
      Build post.
      protected org.apereo.cas.authentication.principal.Response buildRedirect​(org.apereo.cas.authentication.principal.WebApplicationService service, java.util.Map<java.lang.String,​java.lang.String> parameters)
      Build redirect.
      protected org.apereo.cas.authentication.principal.Response.ResponseType getWebApplicationServiceResponseType​(org.apereo.cas.authentication.principal.WebApplicationService finalService)
      Determine response type response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
      • Methods inherited from interface org.apereo.cas.authentication.principal.ResponseBuilder

        build, supports
    • Field Detail

      • servicesManager

        protected final transient org.apereo.cas.services.ServicesManager servicesManager
        Services manager instance.
    • Constructor Detail

      • AbstractWebApplicationServiceResponseBuilder

        public AbstractWebApplicationServiceResponseBuilder()
    • Method Detail

      • buildRedirect

        protected org.apereo.cas.authentication.principal.Response buildRedirect​(org.apereo.cas.authentication.principal.WebApplicationService service,
                                                                                 java.util.Map<java.lang.String,​java.lang.String> parameters)
        Build redirect.
        Parameters:
        service - the service
        parameters - the parameters
        Returns:
        the response
      • buildHeader

        protected org.apereo.cas.authentication.principal.Response buildHeader​(org.apereo.cas.authentication.principal.WebApplicationService service,
                                                                               java.util.Map<java.lang.String,​java.lang.String> parameters)
        Build header response.
        Parameters:
        service - the service
        parameters - the parameters
        Returns:
        the response
      • buildPost

        protected org.apereo.cas.authentication.principal.Response buildPost​(org.apereo.cas.authentication.principal.WebApplicationService service,
                                                                             java.util.Map<java.lang.String,​java.lang.String> parameters)
        Build post.
        Parameters:
        service - the service
        parameters - the parameters
        Returns:
        the response
      • getWebApplicationServiceResponseType

        protected org.apereo.cas.authentication.principal.Response.ResponseType getWebApplicationServiceResponseType​(org.apereo.cas.authentication.principal.WebApplicationService finalService)
        Determine response type response.
        Parameters:
        finalService - the final service
        Returns:
        the response type