java.lang .Object net.sf.regain.ui.desktop.config .XmlDesktopConfig XmlDesktopConfig public class XmlDesktopConfig implements DesktopConfig ,DesktopConstants (Code) Reads the configuration of the desktop search from a XML file.
author: Til Schneider, www.murfman.de
Constructor Summary public XmlDesktopConfig (File xmlFile) Creates a new instance of XmlDesktopConfig.
Method Summary public String getBrowser () Gets the executable of the browser that should be used for showing web
pages.public intgetInterval () Gets the index update interval from the desktop configuration.public intgetPort () Gets the port of the webserver.
XmlDesktopConfig public XmlDesktopConfig(File xmlFile)(Code) Creates a new instance of XmlDesktopConfig.
Parameters: xmlFile - The XML file to read the configuration from.
getBrowser public String getBrowser() throws RegainException (Code) Gets the executable of the browser that should be used for showing web
pages. Returns null
if the browser should be auto-detected.
The executable of the browser.throws: RegainException - If loading the config failed.
getInterval public int getInterval() throws RegainException (Code) Gets the index update interval from the desktop configuration.
The index update interval.throws: RegainException - If loading the config failed.