|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.transport.mail.MailServer
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.
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
MailServer(java.lang.String host,
int port,
java.lang.String userid,
java.lang.String password)
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public MailServer(java.lang.String host, int port, java.lang.String userid, java.lang.String password)
Method Detail |
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.Runnable
public 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.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |