1
2
3
4
5
6
7
8
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 }