AWS Integration
"make AWS easier"
http://awsintegration.sourceforge.net/
 
 
 
 
Get Firefox!
 
Support This Project
 
SourceForge.net Logo
 

Usage

An example of usage is shown below;

The ECommerce service;

ECommerceDAOFactory factory = ECommerceDAOFactory.getECommerceDAOFactory(); // default locale
DVDDAO dao = factory.getDVDDAO();
DVDTransferObject[] results = dao.searchDVD("rounders");

To specify a locale;

ECommerceDAOFactory factory = ECommerceDAOFactory.getECommerceDAOFactory("US");
DVDDAO dao = factory.getDVDDAO();
DVDTransferObject[] results = dao.searchDVD("rounders");

To set your own subscription Id and associate tag (and optionally the locale);

SubscriptionTransferObject subscriber = new SubscriptionTransferObject("0525E2PQ81DD7ZTWTK82", "aws-zone");
ECommerceDAOFactory factory = ECommerceDAOFactory.getECommerceDAOFactory(subscriber, "US");
DVDDAO dao = factory.getDVDDAO();
DVDTransferObject[] results = dao.searchDVD("rounders");

Given the result, you can retrieve information such as title, price etc, ready to drop on your JSP page;

// ...
DVDTransferObject[] results = dao.searchDVD("rounders");
result[0].getTitle();
result[0].getOurPrice();
result[0].getUrl(); // the amazon link including your associate tag

 

 
 copyright 2005 toby weston, all rights reserved. AWS Integration is licensed under the GNU GPL.