Class AddressLookupBR

java.lang.Object
org.brerp.base.util.AddressLookupBR
All Implemented Interfaces:
AddressLookupInterface

@Deprecated(forRemoval=true, since="11") public class AddressLookupBR extends Object implements AddressLookupInterface
Deprecated, for removal: This API element is subject to removal in a future version.
AddressLookupBR Pesquisa de informações de endereço pelo CEP
Version:
$Id: AddressLookupBR.java, v1.0 2012/10/30 23:33:13 PM, muriloht Exp $
Author:
Murilo H. Torquato (devCoffee, www.devcoffee.com.br)
  • 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.
    AddressLookupBR(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

    • AddressLookupBR

      public AddressLookupBR()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new instance of AddressLookup.
    • AddressLookupBR

      public AddressLookupBR(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:
      accessCode - the accessCode 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