|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Server side business logic lives in pipeline components. They usually represent small pieces of business logic. Pipeline components can be combined into a larger unit of work called a pipeline.
The PipelineComponents typically read the information from PipelineSession
,
process the information and then update the PipelineSession
with updated/additional
information. The PipelineComponents should return the processed PipelineSession
.
If the execution of any PipelineComponent
is not
successful depending on how critical its execution was, it can either throw
a PipelineFatalException
or a PipelineNonFatalException
.
If PipelineFatalException
is thrown, then the entire pipeline in which
this component is participating is considered a failure. If a PipelineNonFatalException
is thrown, then the execution of other components in this pipeline is continued.
Note: this interface makes PipelineComponent interface obsolete. New PC implementations should implement this interface, and also any PC that will operate in an environment where concurrent requests on the same HTTP Session can occur (such as sites that use HTML frames).
PipelineSessionExtended
,
PipelineSession
,
PipelineFatalException
,
PipelineNonFatalException
,
RemoteException
Method Summary | |
PipelineSessionExtended |
process(PipelineSessionExtended pipelineSession,
int requestId)
The process method which processes the PipelineSession
and returns the processed PipelineSession . |
Method Detail |
public PipelineSessionExtended process(PipelineSessionExtended pipelineSession, int requestId) throws PipelineFatalException, PipelineNonFatalException, java.rmi.RemoteException
PipelineSession
and returns the processed PipelineSession
.
Note: This method is not allowed to return null. Returning null will cause the pipeline in which this component is participating to terminate abnormally.
pipelineSession
- PipelineSessionExtended
objectrequestId
- unique identifier of originating requestPipelineSessionExtended
the processed PipelineSessionExtended
objectPipelineFatalException
- indicates that the component failed to execute
and the pipeline has to be terminated.PipelineNonFatalException
- indicates that the component failed to execute. But the
failure is not critical to the pipeline as a whole and hence the pipeline execution has to be continued.RemoteException
- on Remote error.
|
© 2001 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |