1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.service.processor; |
8 | |
|
9 | |
import org.mule.OptimizedRequestContext; |
10 | |
import org.mule.api.MuleEvent; |
11 | |
import org.mule.api.MuleException; |
12 | |
import org.mule.api.processor.MessageProcessor; |
13 | |
|
14 | 0 | public class ServiceSetEventRequestContextMessageProcessor implements MessageProcessor |
15 | |
{ |
16 | |
|
17 | |
public MuleEvent process(MuleEvent event) throws MuleException |
18 | |
{ |
19 | |
|
20 | 0 | if (event.getEndpoint().getExchangePattern().hasResponse()) |
21 | |
{ |
22 | 0 | event = OptimizedRequestContext.unsafeSetEvent(event); |
23 | |
} |
24 | |
|
25 | 0 | return event; |
26 | |
} |
27 | |
} |