View Javadoc

1   /*
2    * $Id$
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.test.integration.tck;
12  
13  import java.net.URI;
14  import java.net.URISyntaxException;
15  
16  import javax.ws.rs.Consumes;
17  import javax.ws.rs.POST;
18  import javax.ws.rs.Path;
19  import javax.ws.rs.Produces;
20  import javax.ws.rs.core.Response;
21  
22  @Path("/weather-report")
23  public class WeatherReportResource
24  {
25      @POST
26      @Consumes("application/xml")
27      @Produces("text/plain")
28      public Response createNewReport(String report) throws URISyntaxException
29      {
30          return Response.created(new URI("foo://fake_report_uri")).build();
31      }
32  }