Class AbstractRestHeritrixController

    • Field Detail

      • files

        protected final Heritrix3Files files
        The various files used by Heritrix.
      • h3wrapper

        protected org.netarchivesuite.heritrix3wrapper.Heritrix3Wrapper h3wrapper
      • h3launcher

        protected org.netarchivesuite.heritrix3wrapper.CommandLauncher h3launcher
      • h3handler

        protected org.netarchivesuite.heritrix3wrapper.LaunchResultHandlerAbstract h3handler
      • heritrixBaseDir

        protected File heritrixBaseDir
    • Constructor Detail

      • AbstractRestHeritrixController

        public AbstractRestHeritrixController​(Heritrix3Files files)
        Create a AbstractRestHeritrixController object.
        Parameters:
        files - Files that are used to set up Heritrix.
    • Method Detail

      • getGuiPort

        protected int getGuiPort()
        Returns:
        the HTTP port used by the Heritrix3 GUI.
      • getHeritrixFiles

        protected Heritrix3Files getHeritrixFiles()
        Returns:
        the Heritrix3 files wrapper.
      • getHostName

        protected String getHostName()
        Returns:
        the host name
      • getHeritrixAdminName

        protected String getHeritrixAdminName()
        Get the login name for accessing the Heritrix3 GUI. This name can be set in the settings.xml file.
        Returns:
        Name to use for accessing Heritrix3 web GUI
      • getHeritrixAdminPassword

        protected String getHeritrixAdminPassword()
        Get the login password for accessing the Heritrix3 GUI. This password can be set in the settings.xml file.
        Returns:
        Password to use for accessing the Heritrix3 GUI
      • toString

        public String toString()
        Get a string that describes the current controller in terms of job ID, harvest ID, and crawldir.
        Overrides:
        toString in class Object
        Returns:
        A human-readable string describing this controller.
      • getJobDescription

        protected String getJobDescription()
        Return a human-readable description of the job. This will only be visible in the Heritrix GUI.
        Returns:
        String containing various information grabbed from HeritrixFiles.