Class AbstractWebApplicationServiceResponseBuilder
java.lang.Object
org.apereo.cas.authentication.principal.AbstractWebApplicationServiceResponseBuilder
- All Implemented Interfaces:
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 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:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apereo.cas.services.ServicesManager
Services manager instance.Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apereo.cas.authentication.principal.Response
buildHeader
(org.apereo.cas.authentication.principal.WebApplicationService service, Map<String, String> parameters) Build header response.protected org.apereo.cas.authentication.principal.Response
buildPost
(org.apereo.cas.authentication.principal.WebApplicationService service, Map<String, String> parameters) Build post.protected org.apereo.cas.authentication.principal.Response
buildRedirect
(org.apereo.cas.authentication.principal.WebApplicationService service, Map<String, String> parameters) Build redirect.protected 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) 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 Details
-
servicesManager
protected final org.apereo.cas.services.ServicesManager servicesManagerServices manager instance.
-
-
Constructor Details
-
AbstractWebApplicationServiceResponseBuilder
public AbstractWebApplicationServiceResponseBuilder()
-
-
Method Details
-
buildRedirect
protected org.apereo.cas.authentication.principal.Response buildRedirect(org.apereo.cas.authentication.principal.WebApplicationService service, Map<String, String> parameters) Build redirect.- Parameters:
service
- the serviceparameters
- the parameters- Returns:
- the response
-
determineServiceResponseUrl
protected 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, Map<String, 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, Map<String, 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)
-