Package org.brerp.base.util
Class MobileCepCorreio
java.lang.Object
org.brerp.base.util.WebServiceCep
org.brerp.base.util.MobileCepCorreio
Extract data (via html DOM parsing) from Correios' website.
Extract data (from Correios' website) about address using Zip code/CEP reference
- Version:
- 1.0.0: MobileCepCorreio.java, 08/08/2015 09h00 henrique.lavezzo
- Author:
- Henrique Aparecido Lavezzo (henrique.lavezzo@devcoffee.com.br>, http://www.devcoffee.com.br)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doSearch()
Perform address search using Zip code as reference; Perform HTTP POST request, sending information for website internal variables; Simulating a AJAX form submission, to get HTML with the information; Correios' website uses ISO-8851-1 encoding, but the AJAX request needs to be UTF-8 encoding;Methods inherited from class org.brerp.base.util.WebServiceCep
getAllData, getCep, getCity, getCountry, getNeighborhood, getReturn_status, getState, getStreet, setCity, setCountry, setNeighborhood, setReturn_status, setState, setStreet
-
Field Details
-
logger
-
-
Constructor Details
-
MobileCepCorreio
-
-
Method Details
-
doSearch
public void doSearch()Perform address search using Zip code as reference; Perform HTTP POST request, sending information for website internal variables; Simulating a AJAX form submission, to get HTML with the information; Correios' website uses ISO-8851-1 encoding, but the AJAX request needs to be UTF-8 encoding;- Specified by:
doSearch
in classWebServiceCep
- Parameters:
none
-
-