org.apache.axis.transport.mail
Class MailServer
public
class
MailServer
extends Object
implements Runnable
This is a simple implementation of an SMTP/POP3 server for processing
SOAP requests via Apache's xml-axis. This is not intended for production
use. Its intended uses are for demos, debugging, and performance
profiling.
Author: Davanum Srinivas Rob Jellinghaus (robj@unrealities.com)
Method Summary |
protected static AxisServer | getAxisServer() |
boolean | getDoThreads() |
String | getHost() |
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(POP3Client pop3)
Set the serverSocket this server should listen on.
(note : changing this will not affect a running server, but if you
stop() and then start() the server, the new socket will be used). |
void | start(boolean daemon)
Start this server.
|
void | start()
Start this server as a NON-daemon. |
void | stop()
Stop this server.
|
protected static Log log
public MailServer(String host, int port, String userid, String password)
public boolean getDoThreads()
public String getHost()
public POP3Client getPOP3()
Obtain the serverSocket that that MailServer is listening on.
public static void main(String[] args)
Server process.
public void run()
Accept requests from a given TCP port and send them through the
Axis engine for processing.
public void setDoThreads(boolean value)
public void setPOP3(POP3Client pop3)
Set the serverSocket this server should listen on.
(note : changing this will not affect a running server, but if you
stop() and then start() the server, the new socket will be used).
public void start(boolean daemon)
Start this server.
Spawns a worker thread to listen for HTTP requests.
Parameters: daemon a boolean indicating if the thread should be a daemon.
public void start()
Start this server as a NON-daemon.
public void stop()
Stop this server.
This will interrupt any pending accept().
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.