edu.internet2.middleware.shibboleth.idp.profile
Class IdPProfileHandlerManager

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.config.BaseService
      extended by edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
          extended by edu.internet2.middleware.shibboleth.idp.profile.IdPProfileHandlerManager
All Implemented Interfaces:
ProfileHandlerManager, ReloadableService, Service, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware

public class IdPProfileHandlerManager
extends BaseReloadableService
implements ProfileHandlerManager

Implementation of a ProfileHandlerManager that maps the request path, without the servlet context, to a profile handler and adds support for authentication handlers.


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
BaseReloadableService.ConfigurationResourceListener
 
Field Summary
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 Summary
IdPProfileHandlerManager()
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseReloadableService
destroy, getPollingFrequency, getPollingRetryAttempts, getPollingTimer, initialize, reload, setPollingFrequency, setPollingRetryAttempts, setPollingTimer
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.BaseService
getApplicationContext, getId, getReadWriteLock, getServiceConfigurations, getServiceContext, isDestroyed, isInitialized, loadContext, setApplicationContext, setBeanName, setInitialized, setServiceConfigurations, setServiceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.internet2.middleware.shibboleth.common.service.Service
getId, isDestroyed, isInitialized
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.


errorHandler

private AbstractErrorHandler errorHandler
Handler used for errors.


profileHandlers

private Map<String,AbstractRequestURIMappedProfileHandler> profileHandlers
Map of request paths to profile handlers.


loginHandlers

private Map<String,LoginHandler> loginHandlers
Map of authentication methods to login handlers.

Constructor Detail

IdPProfileHandlerManager

public IdPProfileHandlerManager()
Constructor.

Method Detail

getErrorHandler

public AbstractErrorHandler getErrorHandler()

Specified by:
getErrorHandler in interface ProfileHandlerManager

setErrorHandler

public void setErrorHandler(AbstractErrorHandler handler)
Sets the error handler.

Parameters:
handler - error handler

getProfileHandler

public ProfileHandler getProfileHandler(javax.servlet.ServletRequest request)

Specified by:
getProfileHandler in interface ProfileHandlerManager

getProfileHandlers

public Map<String,AbstractRequestURIMappedProfileHandler> getProfileHandlers()
Gets the registered profile handlers.

Returns:
registered profile handlers

getLoginHandlers

public Map<String,LoginHandler> getLoginHandlers()
Gets the registered authentication handlers.

Returns:
registered authentication handlers

onNewContextCreated

protected void onNewContextCreated(org.springframework.context.ApplicationContext newServiceContext)
                            throws ServiceException

Specified by:
onNewContextCreated in class BaseService
Throws:
ServiceException

loadNewErrorHandler

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.

Parameters:
newServiceContext - newly created application context

loadNewProfileHandlers

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.

Parameters:
newServiceContext - newly created application context

loadNewLoginHandlers

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.

Parameters:
newServiceContext - newly created application context


Copyright © 1999-2012. All Rights Reserved.