org.aselect.server.cross.selectorhandler
Class RedirectSelectorHandler
java.lang.Object
org.aselect.server.cross.selectorhandler.RedirectSelectorHandler
- All Implemented Interfaces:
- ISelectorHandler
public class RedirectSelectorHandler
- extends java.lang.Object
- implements ISelectorHandler
Cross A-Select Selector handler that redirects to the WAYF page.
Description:
The user will be redirected to a configured WAYF page location.
This handler also supports ELO servers:
- Tries to retrieve the ELO url from a notification cookie (elo)
- If the 'remote_idp' parameter returned by the WAYF page contains an
ELO ID it will redirect to that ELO
- Author:
- Alfa & Ariss
Method Summary |
java.util.Hashtable |
getRemoteServerId(java.util.Hashtable htServiceRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.io.PrintWriter pwOut)
Retrieves the remote A-Select Server id. |
void |
init(java.lang.Object oHandlerConfig)
Initialization of the Handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedirectSelectorHandler
public RedirectSelectorHandler()
init
public void init(java.lang.Object oHandlerConfig)
throws ASelectException
- Initialization of the Handler.
- Specified by:
init
in interface ISelectorHandler
- Throws:
ASelectConfigException
ASelectException
- See Also:
ISelectorHandler.init(java.lang.Object)
getRemoteServerId
public java.util.Hashtable getRemoteServerId(java.util.Hashtable htServiceRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.io.PrintWriter pwOut)
throws ASelectException
- Retrieves the remote A-Select Server id.
- The server id can be in the request as 'remote_idp'
- If no server id found in the request it checks if a notification cookie is set containing the id
- If no server id found in the cookie it redirects the user to a remote WAYF page
- Specified by:
getRemoteServerId
in interface ISelectorHandler
- Returns:
- Hashtable containing
- 'organization_id'
- 'user_id' (optional)
or NULL
- Throws:
ASelectException
- See Also:
ISelectorHandler.getRemoteServerId(java.util.Hashtable, javax.servlet.http.HttpServletResponse, java.io.PrintWriter)
Copyright © 2008 SURFnet BV. All Rights Reserved.