Interface ResponseBuilder<T extends WebApplicationService>

  • Type Parameters:
    T - the type parameter
    All Superinterfaces:
    org.springframework.core.Ordered, java.io.Serializable

    public interface ResponseBuilder<T extends WebApplicationService>
    extends java.io.Serializable, org.springframework.core.Ordered
    Represents the task of building a CAS response that is returned by a service.
    Since:
    4.2.0
    • Field Summary

      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Detail

      • build

        Response build​(T service,
                       java.lang.String serviceTicketId,
                       Authentication authentication)
        Build response. The implementation must produce a response that is based on the type passed. Given the protocol used, the ticket id may be passed as part of the response. If the response type is not recognized, an error must be thrown back.
        Parameters:
        service - the service
        serviceTicketId - the service ticket id
        authentication - the authentication
        Returns:
        the response
      • supports

        default boolean supports​(T service)
        Supports this service.
        Parameters:
        service - the service
        Returns:
        true /false