1
2
3
4
5
6
7 package org.mule.test.integration.tck;
8
9 import java.net.URI;
10 import java.net.URISyntaxException;
11
12 import javax.ws.rs.Consumes;
13 import javax.ws.rs.POST;
14 import javax.ws.rs.Path;
15 import javax.ws.rs.Produces;
16 import javax.ws.rs.core.Response;
17
18 @Path("/weather-report")
19 public class WeatherReportResource
20 {
21 @POST
22 @Consumes("application/xml")
23 @Produces("text/plain")
24 public Response createNewReport(String report) throws URISyntaxException
25 {
26 return Response.created(new URI("foo://fake_report_uri")).build();
27 }
28 }