Package com.akunagroup.uk.postcode
Class AddressLookup
java.lang.Object
com.akunagroup.uk.postcode.AddressLookup
- All Implemented Interfaces:
AddressLookupInterface
@Deprecated(forRemoval=true,
since="11")
public class AddressLookup
extends Object
implements AddressLookupInterface
Deprecated, for removal: This API element is subject to removal in a future version.
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
- Version:
- $Id$
- Author:
- Michael Judd
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of AddressLookup.AddressLookup
(String serverUrl, String serialNo, String password) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of AddressLookup. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
lookupPostcode
(String postcode) Deprecated, for removal: This API element is subject to removal in a future version.Performs a postcode lookup fetching a set of addresses from server.Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of PostcodeLookup.void
setClientID
(String clientID) Deprecated, for removal: This API element is subject to removal in a future version.void
setPassword
(String password) Deprecated, for removal: This API element is subject to removal in a future version.void
setServerUrl
(String serverUrl) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
AddressLookup
public AddressLookup()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of AddressLookup. -
AddressLookup
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of AddressLookup.- Parameters:
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 Details
-
getPassword
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the accessCode
-
getAddressData
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAddressData
in interfaceAddressLookupInterface
-
getClientID
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the clientID
-
getServerUrl
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the serverUrl
-
lookupPostcode
Deprecated, for removal: This API element is subject to removal in a future version.Performs a postcode lookup fetching a set of addresses from server.- Specified by:
lookupPostcode
in interfaceAddressLookupInterface
- Parameters:
postcode
- The postcode to lookup for.- Returns:
- The number of addresses fetched or -1 in case of error.
-
setPassword
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setPassword
in interfaceAddressLookupInterface
- Parameters:
password
- the password to set
-
setClientID
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setClientID
in interfaceAddressLookupInterface
- Parameters:
clientID
- the clientID to set
-
setServerUrl
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setServerUrl
in interfaceAddressLookupInterface
- Parameters:
serverUrl
- the serverUrl to set
-
newInstance
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of PostcodeLookup.- Specified by:
newInstance
in interfaceAddressLookupInterface
-