public class IdPProfileHandlerManager extends BaseReloadableService implements ProfileHandlerManager
ProfileHandlerManager that maps the request path, without the servlet context, to a
profile handler and adds support for authentication handlers.BaseReloadableService.ConfigurationResourceListener| Modifier and Type | Field and Description |
|---|---|
private AbstractErrorHandler |
errorHandler
Handler used for errors.
|
private org.slf4j.Logger |
log
Class logger.
|
private Map<String,LoginHandler> |
loginHandlers
Map of authentication methods to login handlers.
|
private Map<String,AbstractRequestURIMappedProfileHandler> |
profileHandlers
Map of request paths to profile handlers.
|
| Constructor and Description |
|---|
IdPProfileHandlerManager()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractErrorHandler |
getErrorHandler() |
Map<String,LoginHandler> |
getLoginHandlers()
Gets the registered authentication handlers.
|
ProfileHandler |
getProfileHandler(javax.servlet.ServletRequest request) |
Map<String,AbstractRequestURIMappedProfileHandler> |
getProfileHandlers()
Gets the registered profile handlers.
|
protected void |
loadNewErrorHandler(org.springframework.context.ApplicationContext newServiceContext)
Reads the new error handler from the newly created application context and loads it into this manager.
|
protected void |
loadNewLoginHandlers(org.springframework.context.ApplicationContext newServiceContext)
Reads the new authentication handlers from the newly created application context and loads it into this manager.
|
protected void |
loadNewProfileHandlers(org.springframework.context.ApplicationContext newServiceContext)
Reads the new profile handlers from the newly created application context and loads it into this manager.
|
protected void |
onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext) |
void |
setErrorHandler(AbstractErrorHandler handler)
Sets the error handler.
|
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimergetApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, isDestroyed, isInitializedprivate final org.slf4j.Logger log
private AbstractErrorHandler errorHandler
private Map<String,AbstractRequestURIMappedProfileHandler> profileHandlers
private Map<String,LoginHandler> loginHandlers
public AbstractErrorHandler getErrorHandler()
getErrorHandler in interface ProfileHandlerManagerpublic void setErrorHandler(AbstractErrorHandler handler)
handler - error handlerpublic ProfileHandler getProfileHandler(javax.servlet.ServletRequest request)
getProfileHandler in interface ProfileHandlerManagerpublic Map<String,AbstractRequestURIMappedProfileHandler> getProfileHandlers()
public Map<String,LoginHandler> getLoginHandlers()
protected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
throws ServiceException
onNewContextCreated in class BaseServiceServiceExceptionprotected void loadNewErrorHandler(org.springframework.context.ApplicationContext newServiceContext)
newServiceContext - newly created application contextprotected void loadNewProfileHandlers(org.springframework.context.ApplicationContext newServiceContext)
newServiceContext - newly created application contextprotected void loadNewLoginHandlers(org.springframework.context.ApplicationContext newServiceContext)
newServiceContext - newly created application contextCopyright © 1999-2014. All Rights Reserved.