Class IngestDomainList


  • public class IngestDomainList
    extends Object
    Utility class for ingesting new domains into the database.
    • Field Detail

      • log

        protected static final org.slf4j.Logger log
        The logger.
    • Constructor Detail

      • IngestDomainList

        public IngestDomainList()
        Constructor for the IngestDomainList class. It makes a connection to the Domains store.
    • Method Detail

      • updateDomainInfo

        public void updateDomainInfo​(File domainList,
                                     javax.servlet.jsp.JspWriter out,
                                     Locale theLocale)
        Adds all new domains from a newline-separated file of domain names. The file is assumed to be in the UTF-8 format. For large files, a line is printed to the log, and to the out variable (if not set to null), every PRINT_INTERVAL lines.
        Parameters:
        domainList - the file containing the domain names.
        out - a stream to which output can be sent. May be null.
        theLocale - the given Locale