org.aselect.server.request.handler.aselect.authentication
Class ASelectAPIHandler
java.lang.Object
org.aselect.server.request.handler.aselect.authentication.AbstractAPIRequestHandler
org.aselect.server.request.handler.aselect.authentication.ASelectAPIHandler
- All Implemented Interfaces:
- IRequestHandler
public class ASelectAPIHandler
- extends AbstractAPIRequestHandler
This class handles incoming API calls from local servers.
Description:
If this A-Select Servers is acting as Remote Server for
other A-Select Servers (cross A-Select), the following requests
of Local Servers are handled here:
authenticate
verify_credentials
- Author:
- Alfa & Ariss
Constructor Summary |
ASelectAPIHandler(RequestParser reqParser,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.lang.String sMyServerId,
java.lang.String sMyOrg)
Create a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASelectAPIHandler
public ASelectAPIHandler(RequestParser reqParser,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse,
java.lang.String sMyServerId,
java.lang.String sMyOrg)
throws ASelectCommunicationException
- Create a 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.
processAPIRequest
protected void processAPIRequest(IProtocolRequest oProtocolRequest,
IInputMessage oInputMessage,
IOutputMessage oOutputMessage)
throws ASelectException
- Processes all incoming application API calls.
- 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.