edu.internet2.middleware.shibboleth.wayf
Class DiscoveryServiceHandler

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.wayf.DiscoveryServiceHandler

public class DiscoveryServiceHandler
extends Object

Specific handler for each version of the Discovery Service.


Constructor Summary
protected DiscoveryServiceHandler(Element config, Hashtable<String,IdPSiteSet> federations, Hashtable<String,Plugin> plugins, HandlerConfig defaultConfig)
          Constructor to create and configure the handler.
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
static void forwardRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, IdPSite site)
          Uses an HTTP Status 307 redirect to forward the user to the IdP or the SP.
protected  String getLocation()
          The 'Name' of the service.
protected  boolean isDefault()
          Whether this is the default service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryServiceHandler

protected DiscoveryServiceHandler(Element config,
                                  Hashtable<String,IdPSiteSet> federations,
                                  Hashtable<String,Plugin> plugins,
                                  HandlerConfig defaultConfig)
                           throws ShibbolethConfigurationException
Constructor to create and configure the handler.

Parameters:
config - - DOM Element with configuration information.
federations - - Supplies all known providers which will be included if so configured.
plugins - - Supplies all known plugins which will be included if configured in.
defaultConfig - - The default configurations.
Throws:
ShibbolethConfigurationException - - if we find something odd in the config file.
Method Detail

getLocation

protected String getLocation()
The 'Name' of the service. the path used to identify the ServiceHandler.

Returns:
the path used to identify the ServiceHandler.

isDefault

protected boolean isDefault()
Whether this is the default service.

Returns:
is it?

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)

forwardRequest

public static void forwardRequest(javax.servlet.http.HttpServletRequest req,
                                  javax.servlet.http.HttpServletResponse res,
                                  IdPSite site)
                           throws WayfException
Uses an HTTP Status 307 redirect to forward the user to the IdP or the SP.

Parameters:
req - request under consideration
res - response under construction
site - The Idp
Throws:
WayfException - if bad things happen.


Copyright © 2006-2009 Internet2. All Rights Reserved.