|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.messagepipeline.PipelineStage
org.osesb.messagepipeline.builtinstages.XMLNodeExtractorPipelineStage
org.osesb.msgrouting.test.deployabletestpackage1.SumCDElementPricesPipelineStage
public class SumCDElementPricesPipelineStage
Test PipelineStage configured by message-pipeline-2-test-config.xml.
SumCDElementPricesPipelineStage extracts all {@code } elements
from a 'cdcatalog' XML message and sets the MessagePipeline result as
XML that contains a root element named 'totalPrice' with a value
that is the sum the sum of all {@code } elements. | Field Summary |
|---|
| Fields inherited from class org.osesb.messagepipeline.PipelineStage |
|---|
log, messagePipelineContext, nextStage, parentMessagePipeline, pipelineStageConfiguration, previousStage, thisClassName |
| Constructor Summary | |
|---|---|
SumCDElementPricesPipelineStage(MessagePipeline parentMessagePipeline,
PipelineStageConfiguration pipelineStageConfiguration)
Creates a new instance of SumCDElementPricesPipelineStage. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Main method for testing. |
boolean |
runStage(EAIMessage eaiMessage)
Run PipelineStage logic. |
| Methods inherited from class org.osesb.messagepipeline.builtinstages.XMLNodeExtractorPipelineStage |
|---|
getExtractedNodes, getExtractedNodes |
| Methods inherited from class org.osesb.messagepipeline.PipelineStage |
|---|
beingDroppedFromPool, commit, getMessagePipelineContext, getNextStage, getParentMessagePipeline, getPipelineStageConfiguration, getPreviousStage, handlePipelineException, handlePipelineException, logMessage, propagate, rollback, setNextStage, setOutputMessage, setPreviousStage, setResultMessage, stageProcessingComplete, stageProcessingStarting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SumCDElementPricesPipelineStage(MessagePipeline parentMessagePipeline,
PipelineStageConfiguration pipelineStageConfiguration)
throws java.lang.Exception
parentMessagePipeline - The MessagePipeline that constructed
this PipelineStage.pipelineStageConfiguration - A PipelineStageConfiguration for
this PipelineStage.
java.lang.Exception - if constructed with a null parentMessagePipeline or a
null pipelineStageConfiguration.| Method Detail |
|---|
public boolean runStage(EAIMessage eaiMessage)
throws PipelineStageException
<cd> elements from a 'cdcatalog' XML message
and sets the MessagePipeline result as XML that contains a root element named
'totalPrice' with a value that is the sum the sum of all <price> elements.
runStage in class XMLNodeExtractorPipelineStageeaiMessage - The EAI message, which is the output of the last PipeLineStage that invoked
setOutputMessage(), or, if this is the first PiplelineStage, then this is the EAIMessage
that the MessagePipeline was invoked with.
a - PipelineStageException if any errors occur.
PipelineStageExceptionpublic static void main(java.lang.String[] args)
args - The test data directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||