com.restfully.shop.services
Class CustomerResource

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

public class CustomerResource
extends java.lang.Object


Constructor Summary
CustomerResource()
           
 
Method Summary
 javax.ws.rs.core.Response createCustomer(java.io.InputStream is)
           
 javax.ws.rs.core.StreamingOutput getCustomer(int id)
           
protected  void outputCustomer(java.io.OutputStream os, Customer cust)
           
protected  Customer readCustomer(java.io.InputStream is)
           
 void updateCustomer(int id, java.io.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 javax.ws.rs.core.Response createCustomer(java.io.InputStream is)

getCustomer

public javax.ws.rs.core.StreamingOutput getCustomer(int id)

updateCustomer

public void updateCustomer(int id,
                           java.io.InputStream is)

outputCustomer

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

readCustomer

protected Customer readCustomer(java.io.InputStream is)


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.