View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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  }