Class CompanyRequest


  • public class CompanyRequest
    extends java.lang.Object
    Class to create requests for Company Enrich and Company Search
    • Constructor Summary

      Constructors 
      Constructor Description
      CompanyRequest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validateForEnrich()
      Method to validate request for company enrich.
      void validateForSearch()
      Method to validate request for company search.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompanyRequest

        public CompanyRequest()
    • Method Detail

      • validateForEnrich

        public void validateForEnrich()
                               throws FullContactException
        Method to validate request for company enrich. It validates that company domain name should not be null or empty
        Throws:
        FullContactException - if domain is null or empty
      • validateForSearch

        public void validateForSearch()
                               throws FullContactException
        Method to validate request for company search. It validates that companyName should not be null or empty
        Throws:
        FullContactException - if companyName is null or empty