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.OrderedRepresents the task of building a CAS response that is returned by a service.- Since:
- 4.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Responsebuild(T service, java.lang.String serviceTicketId, Authentication authentication)Build response.default booleansupports(T service)Supports this service.
-
-
-
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 serviceserviceTicketId- the service ticket idauthentication- the authentication- Returns:
- the response
-
supports
default boolean supports(T service)
Supports this service.- Parameters:
service- the service- Returns:
- true /false
-
-