web services test2

  1. @Path
    • value is the relative URI path indicating where the Java class will be hosted
    • can embed variables in the URI to make a URI path template
    • eg. city/{name}
  2. @GET
    • will process a HTTP GET request(a request method designator)
    • behaviour of resource is determined by the HTTP method to which the resource is responding
  3. @POST
    • will process a HTTP POST request
    • behaviour of resource is determined by the HTTP method to which the resource is responding
  4. @PUT
    • will process a HTTP PUTT request
    • behaviour of resource is determined by the HTTP method to which the resource is responding
  5. @Delete
    • will process a HTTP DELETE request
    • behaviour of resource is determined by the HTTP method to which the resource is responding
  6. @PathParam
    • is a type of parameter that you can extract for use in your resource class
    • URI path parameter are extracted from the request URI
    • parameter name -> URI path template variable name
  7. @QueryParam
    a type of paramater that can be extracted from request URI query parameter
  8. @DefaultValue
  9. @Produces
    used to specify the MIME media types of representation a resource can produce and send to client
  10. possible @Produces
  11. @Consumes
    used to specify the MIME media types of representations a resource can consume that were sent by client
  12. possible @Consumes
Author
slc53
ID
339778
Card Set
web services test2
Description
web services test2
Updated