|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--kom.tools.ipc.IPCServer | +--kom.smtpd.SMTPD
This is a subclass of IPCServer, adapted to the SMTP protocol
Inner Class Summary | |
(package private) class |
SMTPD.SMTPLogThread
|
Field Summary | |
protected AccessControl |
access
|
protected SMTPConfig |
config
|
protected SMTPDispatcher |
dispatcher
|
protected ObservableVector |
freeThreads
|
protected UniqueId |
id
|
protected SMTPLog |
log
|
protected java.util.Vector |
logdata
|
protected NameFinder[] |
namefinders
|
protected java.util.Hashtable |
preload
|
protected java.util.Vector |
threads
|
Fields inherited from class kom.tools.ipc.IPCServer |
port,
socket |
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
SMTPD(int port,
SMTPConfig config,
SMTPLog log)
Constructor |
Method Summary | |
void |
addLog(SMTPRequestLog log)
|
void |
addThreadObserver(java.util.Observer obs)
Adds a thread observer |
void |
deleteThreadObserver(java.util.Observer obs)
Removes the thread observer |
long |
getThreadNumber()
Get number of threads |
void |
handle(IPCConnection connection)
Performs an action for the incoming connection |
void |
log(SMTPRequestLog requestLog)
|
static void |
main(java.lang.String[] args)
The main program. |
protected void |
preloadClasses()
Loads some classes |
Methods inherited from class kom.tools.ipc.IPCServer |
accept,
bind,
run,
start |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected SMTPConfig config
protected AccessControl access
protected java.util.Hashtable preload
protected UniqueId id
protected SMTPDispatcher dispatcher
protected ObservableVector freeThreads
protected java.util.Vector threads
protected java.util.Vector logdata
protected SMTPLog log
protected NameFinder[] namefinders
Constructor Detail |
public SMTPD(int port, SMTPConfig config, SMTPLog log)
port
- Port number on which this server listens for connectionsconfig
- A configuration instancelog
- Reference to SMTPlog threadMethod Detail |
public void log(SMTPRequestLog requestLog)
public void addLog(SMTPRequestLog log)
public long getThreadNumber()
public void addThreadObserver(java.util.Observer obs)
public void deleteThreadObserver(java.util.Observer obs)
protected void preloadClasses()
public void handle(IPCConnection connection)
connection
- The incoming connectionpublic static void main(java.lang.String[] args)
args
- List with arguments for this program.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |