Package com.mobcom.test

Source Code of com.mobcom.test.URLBuilderTester

package com.mobcom.test;

import java.util.SortedMap;
import java.util.TreeMap;

import com.mobcom.amazon.URLBuilder;

public class URLBuilderTester {

  /**
   * @param args
   */
  public static void main(String[] args){
    URLBuilder builder = URLBuilder.getInstance();
    SortedMap<String, String> params = new TreeMap<String, String>();
    params.put("Operation", "ItemLookup");
    params.put("IdType", "ISBN");
    params.put("ItemId", "1935597140");
    params.put("SearchIndex", "Books");
    params.put("ResponseGroup", "ItemAttributes");
    System.out.println(builder.getURL(params));
    URLBuilder bild = URLBuilder.getInstance();
    System.out.println(bild.getURL(new TreeMap<String, String>()));
  }

}
TOP

Related Classes of com.mobcom.test.URLBuilderTester

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.