Package org.wso2.msf4j.example.service
Class CustomerService
- java.lang.Object
-
- org.wso2.msf4j.example.service.CustomerService
-
@Path("/customer") public class CustomerService extends java.lang.ObjectCustomerService 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.ResponsegetCustomer(java.lang.String id)Retrieves a customer record for a given customer ID.
-
-
-
Method Detail
-
getCustomer
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getCustomer(@PathParam("id") java.lang.String id) throws CustomerNotFoundExceptionRetrieves 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
-
-