use of org.apache.thrift.transport.THttpClient in project sw360portal by sw360.
the class Sw360ProjectService method getThriftProjectClient.
private ProjectService.Iface getThriftProjectClient() throws TTransportException {
THttpClient thriftClient = new THttpClient(thriftServerUrl + "/projects/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
return new ProjectService.Client(protocol);
}
use of org.apache.thrift.transport.THttpClient in project sw360portal by sw360.
the class Sw360VendorService method getThriftVendorClient.
private VendorService.Iface getThriftVendorClient() throws TTransportException {
THttpClient thriftClient = new THttpClient(thriftServerUrl + "/vendors/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
return new VendorService.Client(protocol);
}
use of org.apache.thrift.transport.THttpClient in project sw360portal by sw360.
the class Sw360LicenseInfoService method getThriftLicenseInfoClient.
private LicenseInfoService.Iface getThriftLicenseInfoClient() throws TTransportException {
THttpClient thriftClient = new THttpClient(thriftServerUrl + "/licenseinfo/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
return new LicenseInfoService.Client(protocol);
}
use of org.apache.thrift.transport.THttpClient in project sw360portal by sw360.
the class Sw360ReleaseService method getThriftComponentClient.
private ComponentService.Iface getThriftComponentClient() throws TTransportException {
THttpClient thriftClient = new THttpClient(thriftServerUrl + "/components/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
return new ComponentService.Client(protocol);
}
use of org.apache.thrift.transport.THttpClient in project sw360portal by sw360.
the class Sw360UserService method getThriftUserClient.
private UserService.Iface getThriftUserClient() throws TTransportException {
THttpClient thriftClient = new THttpClient(thriftServerUrl + "/users/thrift");
TProtocol protocol = new TCompactProtocol(thriftClient);
return new UserService.Client(protocol);
}
Aggregations