org.aselect.server.cross.selectorhandler
Class SFSSelectorHandler
java.lang.Object
org.aselect.server.cross.selectorhandler.SFSSelectorHandler
- All Implemented Interfaces:
- ISelectorHandler
public class SFSSelectorHandler
- extends java.lang.Object
- implements ISelectorHandler
This class handles the remote A-Select Server selection by checking the user id against configured regular expressions.
Description:
The submitted user_id will be checked against the configured regular expressions, on a match the user will be send to the
corresponding remote A-Select server.
- Author:
- Alfa & Ariss
Method Summary |
java.util.Hashtable |
getRemoteServerId(java.util.Hashtable htServiceRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.io.PrintWriter pwOut)
Returns the remote A-Select Server and optionally a user id. |
void |
init(java.lang.Object oHandlerConfig)
Initialization of this Handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SFSSelectorHandler
public SFSSelectorHandler()
init
public void init(java.lang.Object oHandlerConfig)
throws ASelectException
- Initialization of this Handler.
Initializes global class-variables that are needed within the whole handler instance.
- 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
- Returns the remote A-Select Server and optionally a user id.
This handler will return NULL if no remote server is
known yet (first time). Id no user_id is provided the user is presented a login form where
he/she can submit his/her username, this will be matched against the configured regular expressions
and on the first match the corresponding remote organization id will be put in a hashtable and returned to
the A-Select subsystem.
- 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.