uk.org.ogsadai.engine.controlflow
Class SequenceRequestComponent

java.lang.Object
  |
  +--uk.org.ogsadai.engine.controlflow.CompositeRequestComponent
        |
        +--uk.org.ogsadai.engine.controlflow.SequenceRequestComponent
All Implemented Interfaces:
RequestComponent

public class SequenceRequestComponent
extends CompositeRequestComponent
implements RequestComponent

A composite RequestComponent that contains a number of child components which will be processed sequentially when the process method is invoked.

Author:
The OGSA-DAI Project Team

Constructor Summary
SequenceRequestComponent(java.lang.String name)
           
 
Method Summary
 void process(EngineConfiguration config, RequestContext context, ResponseBuilder responseBuilder)
          Processes the component.
 void terminate()
          Terminates the processing of the request component.
 
Methods inherited from class uk.org.ogsadai.engine.controlflow.CompositeRequestComponent
add, children, generatesResultData, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.org.ogsadai.engine.controlflow.RequestComponent
add, children, generatesResultData, initialise
 

Constructor Detail

SequenceRequestComponent

public SequenceRequestComponent(java.lang.String name)
Method Detail

process

public void process(EngineConfiguration config,
                    RequestContext context,
                    ResponseBuilder responseBuilder)
             throws RequestSystemException,
                    RequestUserException
Description copied from interface: RequestComponent
Processes the component. If this is a composite component, then any child components will be processed recursively. Wherever possible an implementation should be coded in such a way that the processing can be terminated prematurely by an invocation of the terminate method by another thread. Hence, when this method returns processing will be either complete or terminated.

Specified by:
process in interface RequestComponent
Parameters:
config - the configuration object for the engine that is processing this request component
context - the context for the request
responseBuilder - the response builder for assembling the response document during processing
Throws:
RequestSystemException - if there is a system problem initialising or processing the request.
RequestUserException - if there is a user problem initialising or processing the request.

terminate

public void terminate()
Description copied from interface: RequestComponent
Terminates the processing of the request component. When this method returns, any threads and other resources associated with the processing of this request must be finished with.

Specified by:
terminate in interface RequestComponent