Class MobileCepCorreio

java.lang.Object
org.brerp.base.util.WebServiceCep
org.brerp.base.util.MobileCepCorreio

public class MobileCepCorreio extends WebServiceCep
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 Details

    • logger

      public static final CLogger logger
  • Constructor Details

    • MobileCepCorreio

      public MobileCepCorreio(String cep)
  • 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 class WebServiceCep
      Parameters:
      none -