Class AbstractServiceFactory<T extends org.apereo.cas.authentication.principal.Service>
- java.lang.Object
-
- org.apereo.cas.authentication.principal.AbstractServiceFactory<T>
-
- All Implemented Interfaces:
org.apereo.cas.authentication.principal.ServiceFactory<T>
,org.springframework.core.Ordered
- Direct Known Subclasses:
WebApplicationServiceFactory
public abstract class AbstractServiceFactory<T extends org.apereo.cas.authentication.principal.Service> extends java.lang.Object implements org.apereo.cas.authentication.principal.ServiceFactory<T>
TheAbstractServiceFactory
is the parent class providing convenience methods for creating service objects.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description AbstractServiceFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
cleanupUrl(java.lang.String url)
Cleanup the url.<T extends org.apereo.cas.authentication.principal.Service>
TcreateService(java.lang.String id, java.lang.Class<T> clazz)
<T extends org.apereo.cas.authentication.principal.Service>
TcreateService(javax.servlet.http.HttpServletRequest request, java.lang.Class<T> clazz)
protected static java.lang.String
getSourceParameter(javax.servlet.http.HttpServletRequest request, java.lang.String... paramNames)
Gets source parameter.
-
-
-
Method Detail
-
cleanupUrl
protected static java.lang.String cleanupUrl(java.lang.String url)
Cleanup the url. Removes jsession ids and query strings.- Parameters:
url
- the url- Returns:
- sanitized url.
-
getSourceParameter
protected static java.lang.String getSourceParameter(javax.servlet.http.HttpServletRequest request, java.lang.String... paramNames)
Gets source parameter.- Parameters:
request
- the requestparamNames
- the param names- Returns:
- the source parameter
-
createService
public <T extends org.apereo.cas.authentication.principal.Service> T createService(java.lang.String id, java.lang.Class<T> clazz)
- Specified by:
createService
in interfaceorg.apereo.cas.authentication.principal.ServiceFactory<T extends org.apereo.cas.authentication.principal.Service>
-
createService
public <T extends org.apereo.cas.authentication.principal.Service> T createService(javax.servlet.http.HttpServletRequest request, java.lang.Class<T> clazz)
- Specified by:
createService
in interfaceorg.apereo.cas.authentication.principal.ServiceFactory<T extends org.apereo.cas.authentication.principal.Service>
-
-