org.aselect.server.processor
Interface IProcessor

All Known Implementing Classes:
AttributeProcessor

public interface IProcessor

Interface for a processor.

Description:
A processor will process a request and can choose to perform an action based on the supplied information and the location.

Concurrency issues:
-

Author:
Alfa & Ariss

Method Summary
 void destroy()
          Removes the processor from memory.
 void init(ASelectConfigManager configManager, java.lang.Object config)
          Initializes the processor component.
 boolean process(javax.servlet.http.HttpServletResponse servletResponse, java.lang.String sRid, java.util.Hashtable serviceRequest, java.util.Hashtable additional)
          Processes the request.
 

Method Detail

init

void init(ASelectConfigManager configManager,
          java.lang.Object config)
          throws ASelectException
Initializes the processor component.

Description:
Reads the specific configuration.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
configManager - the A-Select configuration manager.
config - the specific configuration for the processor.
Throws:
ASelectException - if the configuration is invalid.

destroy

void destroy()
Removes the processor from memory.

Description:
Removes if needed the class variables from memory.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-


process

boolean process(javax.servlet.http.HttpServletResponse servletResponse,
                java.lang.String sRid,
                java.util.Hashtable serviceRequest,
                java.util.Hashtable additional)
                throws ASelectException
Processes the request.

Description:
Will process the request with the supplied information.
If the method returns TRUE then the process must proceed as normal.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Parameters:
servletResponse - response object
sRid - the A-Select request id
serviceRequest - the service request parameters
additional - location dependent information
Returns:
boolean FALSE if the processor has send the response to the user.
Throws:
ASelectException - if an runtime error occurs during process.


Copyright © 2008 SURFnet BV. All Rights Reserved.