org.aselect.server.request.handler.sfs.authentication
Class AuthSPAPIHandler

java.lang.Object
  extended by org.aselect.server.request.handler.sfs.authentication.AbstractAPIRequestHandler
      extended by org.aselect.server.request.handler.sfs.authentication.AuthSPAPIHandler
All Implemented Interfaces:
IRequestHandler

public class AuthSPAPIHandler
extends AbstractAPIRequestHandler

This class handles authentication responses and API calls originating from an authsp. It must be used as follows:
For each new incoming request, create a new AuthSPRequestHandler object and call its handleRequest() method. AuthSPRequestHandler objects cannot be reused due to concurrency issues.

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.request.handler.sfs.authentication.AbstractAPIRequestHandler
_sModule, _sMyOrg, _sMyServerId, _systemLogger
 
Constructor Summary
AuthSPAPIHandler(RequestParser reqParser, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse, java.lang.String sMyServerId, java.lang.String sMyOrg)
          Create new instance.
 
Method Summary
 void processAPIRequest(IProtocolRequest oProtocolRequest, IInputMessage oInputMessage, IOutputMessage oOutputMessage)
          Start processing a request coming from an authsp.
 
Methods inherited from class org.aselect.server.request.handler.sfs.authentication.AbstractAPIRequestHandler
processRequest, serializeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthSPAPIHandler

public AuthSPAPIHandler(RequestParser reqParser,
                        javax.servlet.http.HttpServletRequest servletRequest,
                        javax.servlet.http.HttpServletResponse servletResponse,
                        java.lang.String sMyServerId,
                        java.lang.String sMyOrg)
                 throws ASelectCommunicationException
Create new instance.

Description:
Calls AbstractAPIRequestHandler.AbstractAPIRequestHandler( RequestParser, HttpServletRequest, HttpServletResponse, String, String) and handles are obtained to relevant managers.

Parameters:
reqParser - The request parser to be used.
servletRequest - The request.
servletResponse - The response.
sMyServerId - The A-Select Server ID.
sMyOrg - The A-Select Server organisation.
Throws:
ASelectCommunicationException - If communication fails.
Method Detail

processAPIRequest

public void processAPIRequest(IProtocolRequest oProtocolRequest,
                              IInputMessage oInputMessage,
                              IOutputMessage oOutputMessage)
                       throws ASelectException
Start processing a request coming from an authsp.

Specified by:
processAPIRequest in class AbstractAPIRequestHandler
Parameters:
oProtocolRequest - The request protocol properties.
oInputMessage - The input message.
oOutputMessage - The output message.
Throws:
ASelectException - If processing fails and no response is send to the client.
See Also:
AbstractAPIRequestHandler.processAPIRequest( org.aselect.system.communication.server.IProtocolRequest, org.aselect.system.communication.server.IInputMessage, org.aselect.system.communication.server.IOutputMessage)


Copyright © 2008 SURFnet BV. All Rights Reserved.