|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akunagroup.uk.postcode.AddressLookup
public class AddressLookup
Manages connections with the postcode server, retrieves the response and parses it. The best way to use it is to first issue a postcode lookup. Please see Capscan Doucmentation located at: http://www.capscanondemand.com/docs/OnDemand.pdf
| Constructor Summary | |
|---|---|
AddressLookup()
Creates a new instance of AddressLookup. |
|
AddressLookup(String serverUrl,
String serialNo,
String password)
Creates a new instance of AddressLookup. |
|
| Method Summary | |
|---|---|
HashMap<String,Object> |
getAddressData()
|
String |
getClientID()
|
String |
getPassword()
|
String |
getServerUrl()
|
int |
lookupPostcode(String postcode)
Performs a postcode lookup fetching a set of addresses from server. |
AddressLookupInterface |
newInstance()
Creates a new instance of PostcodeLookup. |
void |
setClientID(String clientID)
|
void |
setPassword(String password)
|
void |
setServerUrl(String serverUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddressLookup()
public AddressLookup(String serverUrl,
String serialNo,
String password)
serverUrl - URL of the postcode server.serialNo - Serial no. (used in authentication along with password)password - Password (used in authentication along with Serial no.)| Method Detail |
|---|
public String getPassword()
public HashMap<String,Object> getAddressData()
getAddressData in interface AddressLookupInterfacepublic String getClientID()
public String getServerUrl()
public int lookupPostcode(String postcode)
lookupPostcode in interface AddressLookupInterfacepostcode - The postcode to lookup for.
public void setPassword(String password)
setPassword in interface AddressLookupInterfaceaccessCode - the accessCode to setpublic void setClientID(String clientID)
setClientID in interface AddressLookupInterfaceclientID - the clientID to setpublic void setServerUrl(String serverUrl)
setServerUrl in interface AddressLookupInterfaceserverUrl - the serverUrl to setpublic AddressLookupInterface newInstance()
newInstance in interface AddressLookupInterface
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||