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

    Constructors
    Constructor
    Description
    Deprecated, 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 Type
    Method
    Description
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    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.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public 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.
      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

      public String getPassword()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the accessCode
    • getAddressData

      public HashMap<String,Object> getAddressData()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAddressData in interface AddressLookupInterface
    • getClientID

      public String getClientID()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the clientID
    • getServerUrl

      public String getServerUrl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the serverUrl
    • lookupPostcode

      public 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.
      Specified by:
      lookupPostcode in interface AddressLookupInterface
      Parameters:
      postcode - The postcode to lookup for.
      Returns:
      The number of addresses fetched or -1 in case of error.
    • setPassword

      public void setPassword(String password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setPassword in interface AddressLookupInterface
      Parameters:
      password - the password to set
    • setClientID

      public void setClientID(String clientID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setClientID in interface AddressLookupInterface
      Parameters:
      clientID - the clientID to set
    • setServerUrl

      public void setServerUrl(String serverUrl)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setServerUrl in interface AddressLookupInterface
      Parameters:
      serverUrl - the serverUrl to set
    • newInstance

      public AddressLookupInterface 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 interface AddressLookupInterface