com.restfully.shop.services
Class CustomerResource

java.lang.Object
  extended by com.restfully.shop.services.CustomerResource

public class CustomerResource
extends Object


Constructor Summary
CustomerResource()
           
 
Method Summary
 Response createCustomer(InputStream is)
           
 StreamingOutput getCustomer(int id)
           
protected  void outputCustomer(OutputStream os, Customer cust)
           
protected  Customer readCustomer(InputStream is)
           
 void updateCustomer(int id, InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerResource

public CustomerResource()
Method Detail

createCustomer

public Response createCustomer(InputStream is)

getCustomer

public StreamingOutput getCustomer(int id)

updateCustomer

public void updateCustomer(int id,
                           InputStream is)

outputCustomer

protected void outputCustomer(OutputStream os,
                              Customer cust)
                       throws IOException
Throws:
IOException

readCustomer

protected Customer readCustomer(InputStream is)


Copyright © 2013 Oracle Corporation. All Rights Reserved.