All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.ws.rs.package-info Maven / Gradle / Ivy

/**
 * High-level interfaces and annotations used to create RESTful service 
 * resources. E.g.:
 
 @Path("widgets/{widgetid}")
 @Consumes("application/widgets+xml")
 @Produces("application/widgets+xml")
 public class WidgetResource {

 @GET
 public String getWidget(@PathParam("widgetid") String id) {
 return getWidgetAsXml(id);
 }

 @PUT
 public void updateWidget(@PathParam("widgetid") String id,
 Source update) {
 updateWidgetFromXml(id, update);
 }

 ...
 }
 
*/ package javax.ws.rs;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy