|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.tools.config.Config | +--kom.tools.web.HTTPConfig | +--kom.gateway.ServerConfig
Configuration data for KOM 2000
Field Summary | |
boolean |
allowForward
True if forwarding should be allowed |
boolean |
allowQueries
True if queries should be allowed |
boolean |
anonymous
True if anonymous contributions are allowed |
boolean |
createCategory
True if anybody should be able to create a category |
boolean |
createForum
True if anybody should be able to create a forum |
boolean |
createQueryAnon
True if anonymous user should be able to create a query |
java.lang.String |
darkColor
Colour code for dark background and some links in HTML pages |
(package private) boolean |
dispLocation
If set, rely on the Location header to cause the page to be displayed |
(package private) boolean |
doRating
If true, deploy rating additions to HTML pages |
(package private) boolean |
formDebug
If true, ids of used form templates are shown in HTML comments |
boolean |
handleNews
True if it should be possible to connect to UseNet News |
java.lang.String |
headColor
Colour code for header and menu backgrounds in HTML pages |
java.lang.String |
iconBase
Icon URI relative to document root |
java.lang.String |
komMailDom
Domain for email to/from this KOM 2000 server |
java.lang.String |
komMailDomAlias
Domain alias for email to this KOM 2000 server |
protected java.lang.String |
komSection
Id of KOM part of config |
java.lang.String |
lightColor
Colour code for light background in HTML pages |
int |
mailCheckingInterval
Interval for checking the incoming mail spool, seconds |
int |
mailDebug
Non-zero for debugging of mail interface |
java.lang.String |
mailDir
Spool directory for incoming mail |
java.lang.String |
mailHost
Mail server (MTA) domain |
int |
mailNotificationInterval
Interval for the mail notification process, seconds |
int |
maxClients
Max no of connected clients |
java.lang.String |
nntpLoad
Default number of NEWS articles to download on connection |
java.lang.String |
nntpServer
Domain of preferred NNTP server, i e "news@some.org". |
boolean |
notifyByEmail
True if this server should send news notifications by email |
boolean |
publicGrades
True if grades are public by default |
java.lang.String |
selectTexttype
Text type for entries. |
java.lang.String |
serverName
The "published" name of the KOM 2000 server |
java.lang.String |
servletBase
Servlet root (designation of this KOM 2000 server) relative to document root |
boolean |
showUsers
True if the category Users is to be shown |
java.lang.String |
snetChatURL
Special URL for SeniorNet chat |
int |
timeout
Timeout for the gateway, in seconds |
java.lang.String |
uiLang
Interface language designation, i e "sv", "en" |
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 | |
ServerConfig(java.lang.String fileName)
Constructor |
Method Summary | |
java.lang.String |
getHelp(java.lang.String htmlPage)
Gets the name of the html help file for the specified html page (type) |
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 |
|
Field Detail |
public int maxClients
public int timeout
public java.lang.String uiLang
public java.lang.String serverName
public boolean handleNews
public java.lang.String nntpServer
public java.lang.String nntpLoad
public java.lang.String komMailDom
public java.lang.String komMailDomAlias
public java.lang.String mailDir
public int mailCheckingInterval
public java.lang.String servletBase
public java.lang.String iconBase
public int mailDebug
public java.lang.String mailHost
public boolean notifyByEmail
public int mailNotificationInterval
public boolean anonymous
public boolean publicGrades
public boolean createCategory
public boolean createForum
public boolean createQueryAnon
public boolean showUsers
public boolean allowQueries
public boolean allowForward
public java.lang.String selectTexttype
public java.lang.String snetChatURL
public java.lang.String lightColor
public java.lang.String darkColor
public java.lang.String headColor
boolean dispLocation
boolean doRating
boolean formDebug
protected final java.lang.String komSection
Constructor Detail |
public ServerConfig(java.lang.String fileName)
fileName
- path to configuration file, which will be parsedMethod Detail |
private void settings()
public java.lang.String getHelp(java.lang.String htmlPage)
htmlPage
- Page idpublic boolean read()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |