Class AbstractWebApplicationServiceResponseBuilder
- java.lang.Object
-
- org.apereo.cas.authentication.principal.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.
-
Constructor Summary
Constructors Constructor Description AbstractWebApplicationServiceResponseBuilder()
-
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 java.lang.String
determineServiceResponseUrl(org.apereo.cas.authentication.principal.WebApplicationService service)
Determine service response url and provide url.protected org.apereo.cas.authentication.principal.Response.ResponseType
getWebApplicationServiceResponseType(org.apereo.cas.authentication.principal.WebApplicationService finalService)
Determine response type response.
-
-
-
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 serviceparameters
- the parameters- Returns:
- the response
-
determineServiceResponseUrl
protected java.lang.String determineServiceResponseUrl(org.apereo.cas.authentication.principal.WebApplicationService service)
Determine service response url and provide url.- Parameters:
service
- the service- Returns:
- the string
-
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 serviceparameters
- 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 serviceparameters
- 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
-
-