Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StopFurtherMessageProcessingMessageProcessor |
|
| 3.0;3 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.processor; | |
8 | ||
9 | import org.mule.api.MuleEvent; | |
10 | import org.mule.api.MuleException; | |
11 | import org.mule.processor.AbstractInterceptingMessageProcessor; | |
12 | ||
13 | 0 | public class StopFurtherMessageProcessingMessageProcessor extends AbstractInterceptingMessageProcessor |
14 | { | |
15 | public MuleEvent process(MuleEvent event) throws MuleException | |
16 | { | |
17 | 0 | if (!event.isStopFurtherProcessing()) |
18 | { | |
19 | 0 | return processNext(event); |
20 | } | |
21 | else | |
22 | { | |
23 | 0 | return event; |
24 | } | |
25 | } | |
26 | } |