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.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  }