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

javax.ws.rs.package.html Maven / Gradle / Ivy




  
    
  
  
    

High-level interfaces and annotations used to create RESTful service resources. E.g.:

@UriTemplate("widgets/{widgetid}")
@ConsumeMime("application/widgets+xml")
@ProduceMime("application/widgets+xml")
public class WidgetResource {

  @HttpMethod(GET)
  public String getWidget(@UriParam("widgetid") String id) {
    return getWidgetAsXml(id);
  }
  
  @HttpMethod(PUT)
  public void updateWidget(@UriParam("widgetid") String id,
    Source update) {
    updateWidgetFromXml(id, update);
  }
  
  ...
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy