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.PathParam;
12  import javax.ws.rs.Produces;
13  
14  @Path("/anotherworld")
15  public class AnotherWorldResource 
16  {
17      @GET
18      @Produces("text/plain")
19      @Path("/sayHelloWithUri/{name}")
20      public String sayHelloWithUri(@PathParam("name") String name) 
21      {
22          return "Bonjour " + name;
23      }
24  }