1
2
3
4
5
6
7
8
9
10 package org.mule.module.ibeans.spi.support;
11
12 import org.mule.api.endpoint.ImmutableEndpoint;
13 import org.mule.api.endpoint.InboundEndpoint;
14 import org.mule.component.DefaultInterfaceBinding;
15
16
17
18
19 public class DefaultRequestInterfaceBinding extends DefaultInterfaceBinding
20 {
21
22
23 protected InboundEndpoint inboundEndpoint;
24
25 public void setEndpoint(ImmutableEndpoint e)
26 {
27 if (e instanceof InboundEndpoint)
28 {
29 inboundEndpoint = (InboundEndpoint) e;
30
31 }
32 else
33 {
34 throw new IllegalArgumentException("An inbound endpoint is required for Request Interface binding");
35 }
36 }
37
38 public ImmutableEndpoint getEndpoint()
39 {
40 return inboundEndpoint;
41 }
42 }