org.apache.axis2.transport.mail
Class SimpleMailListener

java.lang.Object
  extended byorg.apache.axis2.transport.TransportListener
      extended byorg.apache.axis2.transport.mail.SimpleMailListener
All Implemented Interfaces:
java.lang.Runnable

public class SimpleMailListener
extends TransportListener
implements java.lang.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.


Field Summary
protected static Log log
           
 
Fields inherited from class org.apache.axis2.transport.TransportListener
PARAM_PORT
 
Constructor Summary
SimpleMailListener()
           
SimpleMailListener(java.lang.String host, java.lang.String port, java.lang.String userid, java.lang.String password, ConfigurationContext er)
           
SimpleMailListener(java.lang.String host, java.lang.String port, java.lang.String userid, java.lang.String password, java.lang.String dir)
           
 
Method Summary
 boolean getDoThreads()
           
 void init(ConfigurationContext configurationContext, TransportInDescription transportIn)
           
static void main(java.lang.String[] args)
          Server process.
 EndpointReference replyToEPR(java.lang.String serviceName)
           
 void run()
          Accept requests from a given TCP port and send them through the Axis engine for processing.
 void setDoThreads(boolean value)
           
 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

log

protected static Log log
Constructor Detail

SimpleMailListener

public SimpleMailListener()

SimpleMailListener

public SimpleMailListener(java.lang.String host,
                          java.lang.String port,
                          java.lang.String userid,
                          java.lang.String password,
                          java.lang.String dir)

SimpleMailListener

public SimpleMailListener(java.lang.String host,
                          java.lang.String port,
                          java.lang.String userid,
                          java.lang.String password,
                          ConfigurationContext er)
Method Detail

setDoThreads

public void setDoThreads(boolean value)

getDoThreads

public boolean getDoThreads()

run

public void run()
Accept requests from a given TCP port and send them through the Axis engine for processing.

Specified by:
run in interface java.lang.Runnable

start

public void start(boolean daemon)
           throws AxisFault
Start this server.

Spawns a worker thread to listen for HTTP requests.

Parameters:
daemon - a boolean indicating if the thread should be a daemon.
Throws:
AxisFault

start

public void start()
           throws AxisFault
Start this server as a NON-daemon.

Specified by:
start in class TransportListener
Throws:
AxisFault

stop

public void stop()
Stop this server.

This will interrupt any pending accept().

Specified by:
stop in class TransportListener

main

public static void main(java.lang.String[] args)
                 throws AxisFault
Server process.

Throws:
AxisFault

init

public void init(ConfigurationContext configurationContext,
                 TransportInDescription transportIn)
          throws AxisFault
Specified by:
init in class TransportListener
Throws:
AxisFault

replyToEPR

public EndpointReference replyToEPR(java.lang.String serviceName)
                             throws AxisFault
Specified by:
replyToEPR in class TransportListener
Throws:
AxisFault