|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.GenericService SK.gnome.dwarf.thread.ThreadService SK.gnome.dwarf.thread.Handler SK.gnome.dwarf.tcpip.TCPHandler SK.gnome.dwarf.mail.pop.POPHandler
This class handles the POP3 connections.
POPHandler must be added to the POPServer
object.
Field Summary |
Fields inherited from class SK.gnome.dwarf.thread.ThreadService |
daemon, thread |
Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
Constructor Summary | |
POPHandler(java.lang.String name)
Creates a new POPHandler. |
Method Summary | |
protected void |
finish()
Waits for the thread to finish. |
protected void |
handle(java.net.Socket socket)
Handles the POP3 connection. |
void |
handleMailEvent(MailEvent event)
Handles the mail event. |
void |
init(SK.gnome.dwarf.Server parent)
Initializes the service. |
java.lang.String |
report()
Returns the service report. |
Methods inherited from class SK.gnome.dwarf.tcpip.TCPHandler |
handle |
Methods inherited from class SK.gnome.dwarf.thread.Handler |
enableThread, loop, start |
Methods inherited from class SK.gnome.dwarf.thread.ThreadService |
run, setDaemon, shutdown, stop |
Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public POPHandler(java.lang.String name)
Method Detail |
public void init(SK.gnome.dwarf.Server parent) throws SK.gnome.dwarf.ServiceException
init
in interface SK.gnome.dwarf.Service
SK.gnome.dwarf.ServiceException
public void handleMailEvent(MailEvent event)
MailEventListener
handleMailEvent
in interface MailEventListener
event
- the mail eventpublic java.lang.String report()
report
in interface SK.gnome.dwarf.Reportable
protected void finish()
protected void handle(java.net.Socket socket)
The report()
method returns a detailed information about the current handler's
activity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |