use of org.eclipse.sw360.datahandler.thrift.vendors.VendorService in project sw360portal by sw360.
the class TestVendorClient method main.
public static void main(String[] args) throws TException, IOException {
THttpClient thriftClient = new THttpClient("http://127.0.0.1:8080/vendorservice/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
VendorService.Iface client = new VendorService.Client(protocol);
List<Vendor> vendors = client.getAllVendors();
reportFindings(vendors);
System.out.println("Now looking for matches starting with 'm' from vendor service");
reportFindings(client.searchVendors("m"));
}
Aggregations