public class RemoteProxy extends java.lang.Object implements TaxRateLookup
| Constructor and Description |
|---|
RemoteProxy(RemoteTaxRateLookup base,
java.lang.Process process,
TaxRateLookupConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TaxResponse |
lookupByAddress(TaxRateAddress address,
Preferences preferences)
Performs lookup by address
|
TaxResponse |
lookupByLocation(Location location,
Preferences preferences)
Performs lookup by location i.e.
|
public RemoteProxy(RemoteTaxRateLookup base, java.lang.Process process, TaxRateLookupConfiguration configuration)
public TaxResponse lookupByAddress(TaxRateAddress address, Preferences preferences) throws TaxRateLookupException
TaxRateLookuplookupByAddress in interface TaxRateLookupaddress - address to use for lookuppreferences - Preferences to useTaxResponseTaxRateLookupException - exception thrown when it fails looking uppublic TaxResponse lookupByLocation(Location location, Preferences preferences) throws TaxRateLookupException
TaxRateLookuplookupByLocation in interface TaxRateLookuplocation - location o use for lookuppreferences - Preferences to useTaxResponseTaxRateLookupException - exception thrown when it fails looking uppublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception