org.aselect.server.cross.selectorhandler
Class DefaultSelectorHandler

java.lang.Object
  extended by org.aselect.server.cross.selectorhandler.DefaultSelectorHandler
All Implemented Interfaces:
ISelectorHandler

public class DefaultSelectorHandler
extends java.lang.Object
implements ISelectorHandler

This class handles the remote A-Select Server selection by means of a user HTML form.

Description:
This handler will present the user a 'dropdown box' containing all configured remote_servers.
This Class is accessed two times within an cross authentication request.
- In the first request a HTML form is presented with a list of all configured remote servers.
- The HTML form will post the remote server selection and will be put here in a hashtable.

Author:
Alfa & Ariss

Constructor Summary
DefaultSelectorHandler()
           
 
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.
 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
 

Constructor Detail

DefaultSelectorHandler

public DefaultSelectorHandler()
Method Detail

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. This handler presents the user with a selection form that is used to determine the remote organization and returns the selected organization to the A-Select sub system.

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.