1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.tck.testmodels.mule; |
12 | |
|
13 | |
import org.mule.umo.UMOMessage; |
14 | |
import org.mule.umo.UMOSession; |
15 | |
import org.mule.umo.endpoint.UMOEndpoint; |
16 | |
import org.mule.umo.routing.RoutingException; |
17 | |
import org.mule.umo.routing.UMORouterCatchAllStrategy; |
18 | |
import org.mule.util.StringMessageUtils; |
19 | |
|
20 | 0 | public class TestCatchAllStrategy implements UMORouterCatchAllStrategy |
21 | |
{ |
22 | |
private UMOEndpoint endpoint; |
23 | |
|
24 | |
public void setEndpoint(UMOEndpoint endpoint) |
25 | |
{ |
26 | 0 | this.endpoint = endpoint; |
27 | 0 | } |
28 | |
|
29 | |
public UMOEndpoint getEndpoint() |
30 | |
{ |
31 | 0 | return endpoint; |
32 | |
} |
33 | |
|
34 | |
public UMOMessage catchMessage(UMOMessage message, UMOSession session, boolean synchronous) |
35 | |
throws RoutingException |
36 | |
{ |
37 | 0 | System.out.println(StringMessageUtils.getBoilerPlate("Caught an event in the router!", '*', 40)); |
38 | 0 | return null; |
39 | |
} |
40 | |
} |