1
2
3
4
5
6
7 package org.mule.module.jersey;
8
9 import javax.ws.rs.GET;
10 import javax.ws.rs.Path;
11 import javax.ws.rs.Produces;
12
13 @Path("/")
14 public class HelloWorldComponent
15 {
16
17 private HelloWorldInterface helloWorldBinding;
18
19 @GET
20 @Path("/sayHello")
21 @Produces("text/plain")
22 public String sayHelloFromBinding()
23 {
24 return helloWorldBinding.sayHello("s");
25 }
26
27 public void setHelloWorldBinding(HelloWorldInterface helloWorldBinding)
28 {
29 this.helloWorldBinding = helloWorldBinding;
30 }
31
32 public HelloWorldInterface getHelloWorldBinding()
33 {
34 return this.helloWorldBinding;
35 }
36 }