View Javadoc

1   /*
2    * $Id: AnotherWorldResource.java 19270 2010-09-01 10:37:41Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.module.jersey;
12  
13  import javax.ws.rs.GET;
14  import javax.ws.rs.Path;
15  import javax.ws.rs.PathParam;
16  import javax.ws.rs.Produces;
17  
18  @Path("/anotherworld")
19  public class AnotherWorldResource 
20  {
21      @GET
22      @Produces("text/plain")
23      @Path("/sayHelloWithUri/{name}")
24      public String sayHelloWithUri(@PathParam("name") String name) 
25      {
26          return "Bonjour " + name;
27      }
28  }