org.apache.axis.transport.mail
public class MailServer extends java.lang.Object implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
MailServer(java.lang.String host,
int port,
java.lang.String userid,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
protected static AxisServer |
getAxisServer() |
boolean |
getDoThreads() |
java.lang.String |
getHost() |
POP3Client |
getPOP3()
Obtain the serverSocket that that MailServer is listening on.
|
static void |
main(java.lang.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(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 MailServer(java.lang.String host,
int port,
java.lang.String userid,
java.lang.String password)
public void setDoThreads(boolean value)
public boolean getDoThreads()
public java.lang.String getHost()
protected static AxisServer getAxisServer()
public void run()
run in interface java.lang.Runnablepublic POP3Client getPOP3()
public void setPOP3(POP3Client pop3)
public void start(boolean daemon)
throws java.lang.Exception
daemon - a boolean indicating if the thread should be a daemon.java.lang.Exceptionpublic void start()
throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.