kom.news
Class NewsConfig

java.lang.Object
  |
  +--kom.tools.config.Config
        |
        +--kom.tools.web.HTTPConfig
              |
              +--kom.news.NewsConfig

public class NewsConfig
extends HTTPConfig

Configuration data for KOM 2000


Field Summary
 int defaultNewsPort
           
 java.lang.String defaultNewsServer
           
 
Fields inherited from class kom.tools.web.HTTPConfig
admin, allowHosts, debugLogFile, debugWriter, defaultThreads, denyHosts, errorFile, fSeparator, host, KOMroot, maxThreads, minThreads, numThreads, port, preload, timeOut, uploadDir
 
Fields inherited from class kom.tools.config.Config
currentParameter, currentSection, errorCode, errorLine, FILE_OPEN_ERROR, fileName, NO_ERROR, sections, SYNTAX_ERROR
 
Constructor Summary
NewsConfig(java.lang.String fileName)
          Constructor
 
Method Summary
 boolean read()
          Reads and parses the configuration file
private  void settings()
          Converts configuration file data to internal form
 
Methods inherited from class kom.tools.web.HTTPConfig
debugLog, errorLog, errorMsg
 
Methods inherited from class kom.tools.config.Config
getPara, getPara, getPara, getPara, getSections, getValue, getValues, handleLine, main, section
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

defaultNewsServer

public java.lang.String defaultNewsServer

defaultNewsPort

public int defaultNewsPort
Constructor Detail

NewsConfig

public NewsConfig(java.lang.String fileName)
Constructor
Parameters:
fileName - path to configuration file, which will be parsed
Method Detail

settings

private void settings()
Converts configuration file data to internal form
Overrides:
settings in class HTTPConfig

read

public boolean read()
Reads and parses the configuration file
Overrides:
read in class HTTPConfig
Returns:
true if syntax was ok