1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.endpoint.outbound; |
8 | |
|
9 | |
import org.mule.OptimizedRequestContext; |
10 | |
import org.mule.api.MuleEvent; |
11 | |
import org.mule.api.MuleException; |
12 | |
import org.mule.api.config.MuleProperties; |
13 | |
import org.mule.api.processor.MessageProcessor; |
14 | |
import org.mule.util.ObjectUtils; |
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | 0 | public class OutboundEndpointPropertyMessageProcessor implements MessageProcessor |
22 | |
{ |
23 | |
public MuleEvent process(MuleEvent event) throws MuleException |
24 | |
{ |
25 | 0 | event.getMessage().setOutboundProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, |
26 | |
event.getEndpoint().getEndpointURI().toString()); |
27 | 0 | event = OptimizedRequestContext.unsafeSetEvent(event); |
28 | 0 | return event; |
29 | |
} |
30 | |
|
31 | |
@Override |
32 | |
public String toString() |
33 | |
{ |
34 | 0 | return ObjectUtils.toString(this); |
35 | |
} |
36 | |
} |