Package org.brerp.base.util
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
ConstructorsConstructorDescriptionDeprecated, 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 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.intlookupPostcode(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.voidsetClientID(String clientID) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPassword(String password) Deprecated, for removal: This API element is subject to removal in a future version.voidsetServerUrl(String serverUrl) Deprecated, for removal: This API element is subject to removal in a future version.
-
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
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:
getAddressDatain 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:
lookupPostcodein 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:
setPasswordin interfaceAddressLookupInterface- Parameters:
accessCode- the accessCode to set
-
setClientID
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setClientIDin interfaceAddressLookupInterface- Parameters:
clientID- the clientID to set
-
setServerUrl
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setServerUrlin 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:
newInstancein interfaceAddressLookupInterface
-