public class CustomerResourceImpl extends Object implements CustomerResource
| Constructor and Description |
|---|
CustomerResourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Customer |
banCustomer(long id) |
Customer |
createCustomer(Customer customer) |
List<Customer> |
getAllCustomers() |
Customer |
getCustomerById(long id)
This method responds to a GET request that supports the content type application/xml or application/json and returns the
requested customer resource.
|
public List<Customer> getAllCustomers()
getAllCustomers in interface CustomerResourcepublic Customer getCustomerById(long id)
The customer is retrieved by id. A representation of the customer is then written into the response in the requested format. The id value is taken from the final path segment.
getCustomerById in interface CustomerResourcepublic Customer banCustomer(long id)
banCustomer in interface CustomerResourcepublic Customer createCustomer(Customer customer)
createCustomer in interface CustomerResourceCopyright © 2015 JBoss by Red Hat. All rights reserved.