org.aselect.server.request.handler.entree.sso.notification
Class SSONotifcationServiceHandler

java.lang.Object
  extended by org.aselect.server.request.handler.AbstractRequestHandler
      extended by org.aselect.server.request.handler.entree.sso.notification.SSONotifcationServiceHandler
All Implemented Interfaces:
IRequestHandler

public class SSONotifcationServiceHandler
extends AbstractRequestHandler

Sets a cookie with the ELO ID, if the ELO is registered in the ELO store.

Description:
This handler extracts the 'elo' parameter from the request and verifies the result as the ELO ID in the ELO store. If the ELO ID is found, the ELO is registered and a cookie is set in the response. The cookie is in the form [elo='elo_id'] and can be used to determine at what ELO the user has authenticated. If the ELO ID cannot be found in the store, no cookie is set.

Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.request.handler.AbstractRequestHandler
_configManager, _oServletConfig, _oSessionManager, _systemLogger
 
Constructor Summary
SSONotifcationServiceHandler()
           
 
Method Summary
 void destroy()
          Does not do anything.
 void init(javax.servlet.ServletConfig oServletConfig, java.lang.Object oConfig)
          Initializes the handler, retrieves the ELO store.
 RequestState process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes the request, thereby setting a cookie in the response if the ELO ID that was send in the request is found in the ELO store.
 
Methods inherited from class org.aselect.server.request.handler.AbstractRequestHandler
getID, getPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSONotifcationServiceHandler

public SSONotifcationServiceHandler()
Method Detail

init

public void init(javax.servlet.ServletConfig oServletConfig,
                 java.lang.Object oConfig)
          throws ASelectException
Initializes the handler, retrieves the ELO store.

Specified by:
init in interface IRequestHandler
Overrides:
init in class AbstractRequestHandler
Parameters:
oServletConfig - Servlet Config of the Parent servlet
oConfig - Object containing the RequestHandler configuration
Throws:
ASelectException - if initalization fails
See Also:
AbstractRequestHandler.init(javax.servlet.ServletConfig, java.lang.Object)

process

public RequestState process(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws ASelectException
Processes the request, thereby setting a cookie in the response if the ELO ID that was send in the request is found in the ELO store. If the 'elo' parameter is missing, a '400 Bad Request' reply is returned.

Parameters:
request - HttpServletRequest containing the request
response - HttpServletResponse containing the response
Returns:
RequestState containing the request handling state
Throws:
ASelectException - if the request couldn't be processed
See Also:
IRequestHandler.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

destroy

public void destroy()
Does not do anything.

See Also:
IRequestHandler.destroy()


Copyright © 2008 SURFnet BV. All Rights Reserved.