public class MailServer extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
MailServer(String host,
int port,
String userid,
String password) |
Modifier and Type | Method and Description |
---|---|
protected static AxisServer |
getAxisServer() |
boolean |
getDoThreads() |
String |
getHost() |
org.apache.commons.net.pop3.POP3Client |
getPOP3()
Obtain the serverSocket that that MailServer is listening on.
|
static void |
main(String[] args)
Server process.
|
void |
run()
Accept requests from a given TCP port and send them through the
Axis engine for processing.
|
void |
setDoThreads(boolean value) |
void |
setPOP3(org.apache.commons.net.pop3.POP3Client pop3)
Set the serverSocket this server should listen on.
|
void |
start()
Start this server as a NON-daemon.
|
void |
start(boolean daemon)
Start this server.
|
void |
stop()
Stop this server.
|
public void setDoThreads(boolean value)
public boolean getDoThreads()
public String getHost()
protected static AxisServer getAxisServer()
public void run()
public org.apache.commons.net.pop3.POP3Client getPOP3()
public void setPOP3(org.apache.commons.net.pop3.POP3Client pop3)
public void start(boolean daemon) throws Exception
daemon
- a boolean indicating if the thread should be a daemon.Exception
public void stop() throws Exception
Exception
public static void main(String[] args)
Copyright © The Apache Software Foundation. All Rights Reserved.