|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.engine.controlflow.CompositeRequestComponent
A CompositeRequestComponent
is a
RequestComponent
that may contain child
components. The iterator
method is defined to provide
access to these children for a concrete implementation.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for logging in this class |
private java.util.List |
mChildren
The child components. |
Constructor Summary | |
CompositeRequestComponent()
|
Method Summary | |
void |
add(RequestComponent child)
Adds a child to a composite component. |
java.util.List |
children()
Returns a non-mutable list of the children of this RequestComponent . |
boolean |
generatesResultData()
Indicates whether or not this component will generate any result data. |
void |
initialise(ActivityContext context,
Session session,
ResponseBuilder responseBuilder)
Initialises the component. |
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 |
process, terminate |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
private final java.util.List mChildren
Constructor Detail |
public CompositeRequestComponent()
Method Detail |
public void add(RequestComponent child)
RequestComponent
add
in interface RequestComponent
child
- The child RequestComponent
public java.util.List children()
RequestComponent
RequestComponent
. If this component is a leaf and
not a composite then
java.util.Collections.EMPTY_LIST
should be
returned.
children
in interface RequestComponent
java.util.List
containing any children.public void initialise(ActivityContext context, Session session, ResponseBuilder responseBuilder) throws RequestSpecificationException, RequestExecutionException
RequestComponent
generatesResultData
method must operational.
initialise
in interface RequestComponent
context
- The context for the requestsession
- The session for the requestresponseBuilder
- The response builder for assembling the response document
RequestSpecificationException
- If there is an initialisation problem caused by incorrect
information in the request.
RequestExecutionException
- If a problem occurs during initialisation that is not
caused by incorrect information in the request.public boolean generatesResultData()
RequestComponent
initialise
method has returned. This method is
used by the engine to determine whether to process a request
synchronously or asynchronously.
generatesResultData
in interface RequestComponent
true
if so, false
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |