Class IngestDomainList


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

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger log
      The logger.
    • Constructor Summary

      Constructors 
      Constructor Description
      IngestDomainList()
      Constructor for the IngestDomainList class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void updateDomainInfo​(java.io.File domainList, javax.servlet.jsp.JspWriter out, java.util.Locale theLocale)
      Adds all new domains from a newline-separated file of domain names.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.io.File domainList,
                                     javax.servlet.jsp.JspWriter out,
                                     java.util.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