edu.internet2.middleware.shibboleth.wayf
Class WayfService

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by edu.internet2.middleware.shibboleth.wayf.WayfService
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class WayfService
extends HttpServlet

A servlet implementation of the Shibboleth WAYF service. Allows a browser user to select from among a group of origin sites. User selection is optionally cached and the user is forwarded to the HandleService appropriate to his selection.

See Also:
Serialized Form

Field Summary
private  List<DiscoveryServiceHandler> discoveryServices
          All the different Discovery Services we deal with.
private static Logger LOG
          Handle for outputting error and other messages.
private  LogbackLoggingService logService
          Logging service.
private static long serialVersionUID
          Required constant for serialization.
private  String wayfConfigFileLocation
          Where to get the configuration.
 
Constructor Summary
WayfService()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
          Handle an HTTP GET.
 void init()
          Initialize the Discovery Service.
private  DiscoveryServiceHandler lookupServiceHandler(HttpServletRequest req)
          Given a request (an HTTP Get) find the apropriate DiscoveryService (from the name).
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Required constant for serialization.

See Also:
Constant Field Values

LOG

private static final Logger LOG
Handle for outputting error and other messages.


wayfConfigFileLocation

private String wayfConfigFileLocation
Where to get the configuration.


logService

private LogbackLoggingService logService
Logging service.


discoveryServices

private List<DiscoveryServiceHandler> discoveryServices
All the different Discovery Services we deal with.

Constructor Detail

WayfService

public WayfService()
Method Detail

init

public void init()
          throws ServletException
Initialize the Discovery Service.

Overrides:
init in class GenericServlet
Throws:
ServletException - in the case of something bad happening

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
Handle an HTTP GET. Just passes out to the appropriate handler.

Overrides:
doGet in class HttpServlet
Parameters:
req - described the request.
res - contains the response.
See Also:
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)

lookupServiceHandler

private DiscoveryServiceHandler lookupServiceHandler(HttpServletRequest req)
Given a request (an HTTP Get) find the apropriate DiscoveryService (from the name).

Parameters:
req - described the request
Returns:
the appropriate DiscoveryService.


Copyright © 1999-2012. All Rights Reserved.