kom.smtpd
Class SMTPConfig

java.lang.Object
  |
  +--kom.tools.config.Config
        |
        +--kom.smtpd.SMTPConfig

public class SMTPConfig
extends Config

SMTP server configuration data and methods


Field Summary
 java.lang.String admin
          Administrator e-mail address
 int defaultThreads
           
 java.lang.String[] mailDomains
          Domain for local addresses
 java.lang.String mailHost
          The local host name
 java.lang.String mailLogFile
          Log mail traffic in this file
 int mailPort
          SMTP server TCP/IP port
 java.lang.String[] mailRoots
          Directory for mail files
 int maxThreads
           
 int minThreads
           
 int numThreads
           
 java.util.Vector preload
          Pre-load these classes
(package private) static java.lang.String section
           
 java.lang.String serverURL
          HTTP server URL
 int timeOut
           
 
Fields inherited from class kom.tools.config.Config
currentParameter, currentSection, errorCode, errorLine, FILE_OPEN_ERROR, fileName, NO_ERROR, sections, SYNTAX_ERROR
 
Constructor Summary
SMTPConfig(java.lang.String fileName)
          SMTP configuration setup
 
Method Summary
protected  void errorMsg(java.lang.String section, java.lang.String msg)
          Configuration error message
 boolean read()
          Read the configuration file and use its values.
private  void settings()
          Get the settings from the configuration file
 
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

timeOut

public int timeOut

mailHost

public java.lang.String mailHost
The local host name

mailRoots

public java.lang.String[] mailRoots
Directory for mail files

mailDomains

public java.lang.String[] mailDomains
Domain for local addresses

serverURL

public java.lang.String serverURL
HTTP server URL

mailPort

public int mailPort
SMTP server TCP/IP port

defaultThreads

public int defaultThreads

numThreads

public int numThreads

minThreads

public int minThreads

maxThreads

public int maxThreads

preload

public java.util.Vector preload
Pre-load these classes

admin

public java.lang.String admin
Administrator e-mail address

mailLogFile

public java.lang.String mailLogFile
Log mail traffic in this file

section

static final java.lang.String section
Constructor Detail

SMTPConfig

public SMTPConfig(java.lang.String fileName)
SMTP configuration setup
Parameters:
Path - of configuration file
Method Detail

errorMsg

protected void errorMsg(java.lang.String section,
                        java.lang.String msg)
Configuration error message

settings

private void settings()
Get the settings from the configuration file

read

public boolean read()
Read the configuration file and use its values. mailHost and mailRoots must be defined.
Overrides:
read in class Config
Tags copied from class: Config
Returns:
true if operation was ok or false if an error occurred.