Class CustomerService


  • @Path("/customer")
    public class CustomerService
    extends java.lang.Object
    CustomerService resource class.
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomerService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getCustomer​(java.lang.String id)
      Retrieves a customer record for a given customer ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomerService

        public CustomerService()
    • Method Detail

      • getCustomer

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCustomer​(@PathParam("id")
                                                     java.lang.String id)
                                              throws CustomerNotFoundException
        Retrieves a customer record for a given customer ID. http://localhost:8080/customer/C001
        Parameters:
        id - Customer ID will be taken from the path parameter.
        Returns:
        Throws:
        CustomerNotFoundException